Save your input using Spencode.htmlencodePreserverspace

xiaoxiao2021-03-06  66

Save your input using Spencode.htmlencodePreserverspace

There is a multi-line text input on the created WebPart. However, after saving to the list, there is no return in the place where multi-line carriage return is changed.

It is estimated that when saving, the return line is not saved due to the coding.

I want to use str.repalce to replace "/ r / n" "

", The result, does not work."

Suddenly I remembered Spencode.htmlencode and Spencode.htmlencode and Spencode.htmlencodePreserverspace, I have been doing not understanding, tried it, and checked.

转载请注明原文地址:https://www.9cbs.com/read-111074.html

New Post(0)