Home > Article > Web Front-end > Display the javascript code of the html page in the textarea_form effects
If If you only want to display, you can use document.write()
If you also want to edit, I think you may still need to use tools like htmledit. I am currently studying fckeditor, which has several types and few functions. of. Hehe, personal opinion, I hope it is useful to you.
2nd floor
3rd floor
is displayed in a multi-line text box
function Deal(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, " fString = Replace(fString," ",chr(32) )
fString = Replace(fString,""",chr(34)) fString = Replace(fString,"'",chr(39))
fString = Replace(fString, "", CHR( 13))
fString = Replace(fString, "
", CHR(10) & CHR(10))
", CHR (10) )
Deal = fString
end function
Use this function to
4th Floor
Display the html page in textarea It will not be displayed in the textarea, but it is possible to display the content in the textarea as an html page....
document.write(xxxxxx)
xxxxx is the value of your textarea
7th floor
8th Floor9th Floor
You can also edit
10th Floor
Friendly Up.
11th floor
asdfs'" value="set">