Home > Web Front-end > JS Tutorial > body text

Display the javascript code of the html page in the textarea_form effects

WBOY
Release: 2016-05-16 19:15:01
Original
1000 people have browsed it

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))

fString = Replace(fString, "

", CHR (10) )
Deal = fString
end function
Use this function to
4th Floor




  
  
  
  
  
  
  




Use this instead textarea
5Fup
6F
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">

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template