Tuesday, September 18, 2012

Re: SimpleHtmlSanitizer is too much simple, where can I find a complete one?

supported, where can I find a complete one? 
Why not make one yourself?
The one in GWT is just an example...
(I made one myself based on the GWT one).
 

Op dinsdag 18 september 2012 16:01:45 UTC+2 schreef 退5的工科苹岷 het volgende:
Dear all

I want to save RichTextArea content into database, and it will show in HTML widgets later. Before save, RichTextArea.getHtml() will return HTML String, I have to Sanitize this String by SimpleHtmlSanitizer. But it is  too much simple, even <u> <br> are not supported, where can I find a complete one?

Btw, Is there any best practice for RichTextArea? there is no standard ToolBar, no devGuide for RichTextArea. What is the target behavior when you paste something from Ms word or OpenOffice or other HTML page? Seems HTML Tags and css will pasted, but javascript will not be pasted. But I don't know whether it will be changed in future.
Also, why RichTextArea doesn't provide some method like getSafeHtml()?

--
Gong Min

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZE-UhDZyPPQJ.
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