GetFieldValueAsHTML on multiline textboxes return instead of

The <br/> gets inserted whenever shift>enter is pressed  inside a multiline text box in SharePoint list.

Pic_ColTBD

Above is a sample text entered in multiline column Col_ToBeDel.

Pic_GetFieldValueAsHTML

When the getfieldvalueashtml method is called against the column value , <br> is returned instead of <br/> tag.

If LoadXML method is called against the value returned by getfieldvalueashtml , it will complain about invalid XML. The fix can be to replace <br> with <br/> before calling LoadXML.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s