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

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

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

Arguments

  • subject - The string to escape.

Example

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