Saturday, September 3, 2011

Good way to strip a string of tags?

Sorry if this is already covered....didnt have much luck searching.

I need a way to return a simple plane text version of a string that
may or may not contain other formatting.
Ideally this would cover formatting from a RichTextBox, HTML tags or
something pasted in from Word.
Basically anything not normal text I want removed.

After googleing I got suggestions of various Regexs, but also warnings
that it isnt a very good way to do it and you need a full HTML parser.
So I'm now wondering whats the best way to do it in GWT.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate