[][src]Function voca_rs::escape::escape_html

pub fn escape_html(subject: &str) -> String

Escapes HTML special characters < > & ' " insubject`.

Arguments

Example

use voca_rs::*;
escape::escape_html("<p>wonderful world</p>");
// => &lt;p&gt;wonderful world&lt;/p&gt;
use voca_rs::Voca;
"<p>wonderful world</p>"._escape_html();
// => &lt;p&gt;wonderful world&lt;/p&gt;