The HTML method should have an automatic escape function for the content.
That
$ ("P"). HTML ("[Email protected]#$%^&*& #x28;& #x29;_+{}<> re?é"); The P tag shows here: [Email protected]#$%^&* () _+{}<> Re?é The HTML method is automatically escaped.
$ ("P"). html ("<div>[email protected]#$%^&*& #x28;& #x29;_+{}<> National Machine Re?é</div > "); The P tag shows here: [Email protected]#$%^&* () _+{}<> Re?é
$ ("P"). HTML ("[Email protected]#$%^&* () _+{}<> re?é"); The P tag shows here: [Email protected]#$%^&* () _+{}<> Re?é
Visible from Above:
The HTML method will
[email protected]#$%^ & a M p; &NBSP ; * & #x28; & #x29; &NBSP ; _+{} , &NB Sp < > &N Bsp , &NB Sp National aircraft re?é //parameters for incoming HTML methods
[Email protected]#$%^ & * () _+{} < > The state machine re?é//the content after using the HTML method. It is escaped by the visible HTML method.
html method Simple Record