/** * Returns a BfoxRef for the given content string * * @param string $content * @return BfoxRef */ function bfox_ref_from_content($content) { $ref = new BfoxRef(); BfoxRefParser::simple_html($content, $ref); return $ref; }
/** * Returns a BfoxRef for the given post content string * * @param string $content * @return BfoxRef */ function refFromPostContent($content) { $ref = new BfoxRef(); BfoxRefParser::simple_html($content, $ref); return $ref; }
private function footnote_replace($match) { $this->footnote_index++; $note = "<a name='footnote_{$this->footnote_index}' href='#footnote_ref_{$this->footnote_index}'>[{$this->footnote_index}]</a> " . BfoxRefParser::simple_html($match[1]); $link = " <a name='footnote_ref_{$this->footnote_index}' href='#footnote_{$this->footnote_index}' title='" . strip_tags($match[1]) . "' class='ref_foot_link'>[{$this->footnote_index}]</a> "; $this->footnotes[] = $note; return $link; }
/** * Replaces bible references with bible links in a given html string * @param string $content * @return string */ function bfox_ref_replace_html($content, $callback = 'bfox_ref_replace_html_cb') { return BfoxRefParser::simple_html($content, null, $callback); }