HTML sanitization: Difference between revisions

Content deleted Content added
sep lede, destub, link to parent per LEDE
m Filled in 1 bare reference(s) with reFill 2
Line 10:
 
== Implementations ==
In [[PHP]], HTML sanitization can be performed using the <code>strip_tags()</code> function at the risk of removing all textual content following an unclosed less-than symbol or angle bracket.<ref>{{cite web|url=http://us3.php.net/manual/en/function.strip-tags.php|title=strip_tags|publisher=PHP.NET}}</ref> The HTML Purifier library is another popular option for PHP applications.<ref>{{Cite web|url=http://wwwhtmlpurifier.org/|title=HTML Purifier - Filter your HTML the standards-compliant way!|website=htmlpurifier.org}}</ref>
 
In [[Java (programming language)|Java]] (and [[.NET Framework|.NET]]), sanitization can be achieved by using the [[OWASP]] Java HTML Sanitizer Project.<ref>{{Cite web|url=https://www.owasp.org/index.php/OWASP_Java_HTML_Sanitizer_Project|title = OWASP Java HTML Sanitizer}}</ref>