$html = any_wiki_tohtml($wiki); echo '<hr/>'; echo '<h2>HTML produced by any_wiki_tohtml()</h2>'; echo '<hr/>'; echo '<pre>'; echo htmlspecialchars($html); echo '</pre>'; echo '<hr/>'; echo '<h2>Back to Wiki by using any_wiki_towiki() on the html above</h2>'; echo '<hr/>'; echo '<pre>'; echo htmlspecialchars(any_wiki_towiki($html)); echo '</pre>'; echo '<hr/>'; echo '<h2>And after any_wiki_runtime() -- check the mailto address</h2>'; echo '<hr/>'; echo '<pre>'; echo htmlspecialchars(any_wiki_runtime($html)); echo '</pre>'; echo '<hr/>'; echo '<h2>This is the runtime text when we echo it inline</h2>'; echo '<hr/>'; echo any_wiki_runtime($html);
/** * Convert data * * @param string $data * @return string */ public function convert($data) { return strip_tags(any_wiki_towiki($data)); }