suve
Warning: Illegal string offset 'doublequoteopening' in /usr/home/svgames/domains/svgames.pl/public_html/dokuwiki/inc/parser/xhtml.php on line 766

awful: function: html-encode

Declaration

string :html-encode ( string $HTML )
string :encodeHTML ( string $HTML )

Summary

Takes a raw string and replaces all < $ e > characters with their respective HTML character entity references. Note that this does not include XHTML's &apos; entity.

Example

# Print text inside HTML tag.
:writeln s'<span>' (:html-encode s'Tommy & Jenny <3') s'</span>'

wikipage modified on 2014/0601/2317