Home >Web Front-end >JS Tutorial >Use javascript to dynamically assign TEXT type data in the database to TEXTAREA_Form special effects
I want to dynamically add text type data to TEXTAREA. The following program cannot be displayed normally.
ShtForm is the Form field, and Txt_CmpnyPrms is TEXTAREA.
Response.Write("
")
When displaying the source of the web page The code is shown as follows:
ShtForm.Txt_CmpnyPrms.innerText = ' efg
s
fdad
f
a
fda
fad';
Please tell me how to solve this problem
1F
");
");
2nd floor
Is it a problem with HTMLEncode?
3rd floor
To: sdts (God’s Angel)
No, HTMLEncode is what I came up with Added, when there is no HTMLEncode, the display format is as follows:
4th floor
up
Floor 5
tempStr = "ShtForm.Txt_CmpnyPrms.innerText =unescape('" escape(v_Rs("Cmpny_Prms").GetChunk(1000)) "')"