Return to Jive Software

This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2,425 Views 11 Replies Last post: Dec 24, 2008 3:23 PM by Long Ton That RSS
Senthil Vaiyapuri Novice 206 posts since
Oct 23, 2008
Currently Being Moderated

Nov 3, 2008 10:16 AM

Disabling HTML filter

Hi,

 

  We are evaluating 2.5.3.  Couple of quick questions:

 

  1.  How to disable the HTML filter ?  We would like to seed the community with a corpus

       of internal docs, (thru rest), and would like to keep the 'src' tags intact.

 

  2.  How do conditionally disable the HTML filter, from within the context of a filter/macro ?

       For example, we have a corpus of internal videos.  We would like to develop a macro to embed the video,

       but we see that the 'src' attribute is stripped from the html fragment returned by the

       macro, making the effort moot.

 

  Thanks much.

  Best Regards,

  -senthil

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Nov 6, 2008 5:19 PM in response to: Senthil Vaiyapuri
Re: Disabling HTML filter

Hey Senthil,

Sorry for the delay, I'm not certain of the answer to your questions myself. I will trace through the code and update you when I have a solution for you. Thanks,

~Long

equintarelli Novice 68 posts since
Jul 1, 2008
Currently Being Moderated
Dec 10, 2008 8:36 AM in response to: Long Ton That
Re: Disabling HTML filter

Hi Long,

any update on this?

 

tks

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Dec 10, 2008 3:20 PM in response to: equintarelli
Re: Disabling HTML filter

Sorry, completely overlooked this.

Unfortunately there's no way to disable the HTML filter, but you can remove tags from the admin console > spaces/community > settings > filters and macros > html filter.

 

There are some tags that can't be removed from there because of security vulnerabilities... if this is a trusted internal site, you can remove these from the list by editing the spring-renderContext.xml in your deployment.

~Long

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Dec 15, 2008 3:04 PM in response to: Senthil Vaiyapuri
Re: Disabling HTML filter
  Could not find spring-renderContext.xml, is it packaged in a jar ?

Yes, this resides within the clearspace-X.X.X.jar, you'll need to unjar, make the modifications and rejar it.

 

I'm not quite following what the HTMLfilter did specifically to the code macro, sounds like it is removing the nbsp? To replicate the issue, would I take the contents of the first file attached and post it (should result in the contents of the second file)?

~Long

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Dec 24, 2008 10:39 AM in response to: Senthil Vaiyapuri
Re: Disabling HTML filter

Senthil,

Just to confirm, are the nbsp's the only HTML that are being stripped-out/converted to spaces for you?

~Long

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Dec 24, 2008 12:36 PM in response to: Senthil Vaiyapuri
Re: Disabling HTML filter

Senthil,

The HTML Filter actually strips out HTML not converts content (such as &) into it's HTML representation & amp ; , this is actually a function of the editor... from my understanding we convert the content into HTML and let the browser deal with the rest.

 

I guess I am not completely understanding the issue here. My initial thought was the HTML filter was stripping out tags, except now it looks like the issue is the editor is insert tags. What are you trying to achieve, perhaps there is a better approach that we haven't explored yet.

~Long

Long Ton That Jive Employee 9,674 posts since
Apr 1, 2008
Currently Being Moderated
Dec 24, 2008 3:23 PM in response to: Senthil Vaiyapuri
Re: Disabling HTML filter

Senthil,

Unfortunately it's not possible to disable the HTML filter in Clearspace 2.5.4.

 

The macro output you supplied looks correct (see the output of working macros built into Clearspace such as the YouTube macro, they appear almost identically). Unfortunately I cannot forward this to our dev team to examine, but I can take a look to see if there's anything I notice wrong immediately. Could you supply me with a copy of your macro plugin along with a description of what it should be doing, and how it works.

~Long

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.