I have a paragraph, I want to use the javascript prompt
function. All works are okay when i & lt;
or & gt;
Not registered They look good in HTML, but when I want to edit them again, then I'm curious & amp; Gt;
and & amp; Lt;
and << li> > > > - Press edit button again
You will see ugly prompt sign in the dialog.
Prompt-dialog appears in the symbols escaping miserable.
Before actually making a difference, HTML
and
I have gt;
a & amp; Lt; Instead of the manual, I prefer the API function instead of
.
jquery solution is also interseting for me
Thank you!
If you really want only the basic content, then you use the value of text instead of the internal HTML property should do.
In jQuery you can do this:
var paragraph = $ ("# paragraph"); Var stringValue = paragraph.text (); StringValue = Prompt ("Please correct your text", stringValue); Paragraph.text (stringValue);
Comments
Post a Comment