Universeorange.com/Docs/

Priya library Function reference Element functions htmlspecialchars_decode

    ready(() => {
        let element = select('#root');
        element.html('<h1>Hello World!</h1>');
        let special = element.htmlspecialchars(element.html(), 'ENT_QUOTES');
        //&lt;h1&gt;Hello World!&lt;/h1&gt;     
        console.log(element.htmlspecialchars_decode(special, 'ENT_QUOTES'));
        //ab"c&#039;d
    });

Htmlspecialchars_decode transform special chars in html from their entities to html tags.

Last modified: 2021-06-07

© 2021 universeorange.com