I am using a MultiLine Rich Text box in my custom list, now I want to remove leading and trailing spaces in the MultiLine Rich text box's input.
I have written an List item event receiver with string.Trim() function and its not working on Rich Text box.
In the code, when I placed a debugger, I am getting the following values from the multiline text box. Below code is just an example, I may also apply Bold, color, etc to my text, accordingly the HTML code may vary.
"<html><div> sample Text </div></html>"
Now how to remove the leading and trailing spaces from MultiLine Rich text box.??
Thanks in advace. :)