You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Louis Ryan <lr...@google.com> on 2009/05/01 18:19:53 UTC

Use of Caja's html-sanitizer in core feature

Hi,
We are currently
including res://com/google/caja/plugin/html-sanitizer-minified.js in the
core feature JS in Shindig. While definitely useful functionality its also
quite large (~20k uncompresses) and as yet we have not defined an interface
for it in the gadgets namespace. It seems we should make a decision to
either move it to its own feature or tell people how to use it an evangelize
it.

Thoughts?

-Louis

Re: Use of Caja's html-sanitizer in core feature

Posted by Kevin Brown <et...@google.com>.
sanitizeHtml is supposed to be implemented as part of gadgets.util. I don't
think anyone has ever implemented.

On Mon, May 4, 2009 at 11:55 AM, Jasvir Nagra <ja...@google.com> wrote:

> Hi,
>
> The bulk of html-sanitizer-minified.js is the HTML and CSS schemas
> used to implement gadgets.util.sanitizeHtml
> (
> http://wiki.opensocial.org/index.php?title=Gadgets.util_(v0.9)#gadgets.util.sanitizeHtml<http://wiki.opensocial.org/index.php?title=Gadgets.util_%28v0.9%29#gadgets.util.sanitizeHtml>
> )
>
> A quick grep doesn't show me sanitizeHtml in shindig - has it been
> deprecated?  If so, I am happy to break it out into a separate
> feature.
>
> Jasvir
>
> On Fri, May 1, 2009 at 9:19 AM, Louis Ryan <lr...@google.com> wrote:
> > Hi,
> > We are currently
> > including res://com/google/caja/plugin/html-sanitizer-minified.js in the
> > core feature JS in Shindig. While definitely useful functionality its
> also
> > quite large (~20k uncompresses) and as yet we have not defined an
> interface
> > for it in the gadgets namespace. It seems we should make a decision to
> > either move it to its own feature or tell people how to use it an
> evangelize
> > it.
> > Thoughts?
> > -Louis
>

Re: Use of Caja's html-sanitizer in core feature

Posted by Jasvir Nagra <ja...@google.com>.
Hi,

The bulk of html-sanitizer-minified.js is the HTML and CSS schemas
used to implement gadgets.util.sanitizeHtml
(http://wiki.opensocial.org/index.php?title=Gadgets.util_(v0.9)#gadgets.util.sanitizeHtml)

A quick grep doesn't show me sanitizeHtml in shindig - has it been
deprecated?  If so, I am happy to break it out into a separate
feature.

Jasvir

On Fri, May 1, 2009 at 9:19 AM, Louis Ryan <lr...@google.com> wrote:
> Hi,
> We are currently
> including res://com/google/caja/plugin/html-sanitizer-minified.js in the
> core feature JS in Shindig. While definitely useful functionality its also
> quite large (~20k uncompresses) and as yet we have not defined an interface
> for it in the gadgets namespace. It seems we should make a decision to
> either move it to its own feature or tell people how to use it an evangelize
> it.
> Thoughts?
> -Louis