html tags displayed after entering blog comment

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/11/2014 11:31:10 PM
ABM
Gravatar
Total Posts 37

html tags displayed after entering blog comment

When anyone enters a comment on a blog entry on my client's website, it is displayed with html tags. You can see an example at http://www.qsftinc.com/qsoft-invited-to-speak-to-graduate-students-at-southern-connecticut-state-university-scsu.aspx. I am running version 2.4.0.3 MSSQL with .net framework 4.0.30319 with full trust. Anyone else see this or have any ideas? Thanks in advance,

Steve

11/11/2014 11:47:40 PM
ABM
Gravatar
Total Posts 37

Re: html tags displayed after entering blog comment

I searched for this topic but I guess I should've tried to troubleshoot it before posting. This behavior occurs when using Chrome but not IE on my Windows Phone. Looking at the html source, it looks like the blog comments are displayed inside an xmp tag. A little research tells me this is deprecated. I'm assuming Chrome no longer supports it. I didn't see any mention of this tag on the mojoPortal site nor the release noted for version 2.4.0.4. Is there a fix in the works?
11/12/2014 8:07:44 AM
Gravatar
Total Posts 18439

Re: html tags displayed after entering blog comment

I believe it is the same problem reported yesterday on this thread, and is caused by some change the AddThis.com made in their sharing widget script that interferes with the NeatHtml anti xss script.

I'm going to investigate this today and see if there is any simple change I can make in the NeatHtml script to solve it.

In the mean time you could disable AddThis from site settings and/or blog settings and I think the problem will stop if AddThis is not on the page.

I can't promise a fix but I will try. I think AddThis has got very aggressive with their scripts. If you inspect the page using web browser dev tools you'll see they are adding all kinds of things to the page, base64 encoded png images, css etc. and they are even manipulating the url to add things there after the page has loaded. I suspect they do this in an attempt to put a tracking code in the url as an alternative to a tracking cookie probably to skirt around the EU cookie laws on a technicality.

11/12/2014 1:09:24 PM
Gravatar
Total Posts 18439

Re: html tags displayed after entering blog comment

Hi,

I was able to workaround the problem with a small edit to the /ClientScript/NeatHtml.js file

If you download the one form our demo site and replace the corresponding file in your site it should fix the problem.

That is, replace yoursite/ClientScript/NeatHtml.js with http://demo.mojoportal.com/ClientScript/NeatHtml.js

Hope that helps,

Joe

11/13/2014 9:13:50 AM
ABM
Gravatar
Total Posts 37

Re: html tags displayed after entering blog comment

Thanks, Joe. I will try it out tonight. Not sure why I didn't get notified about you posting to this thread. Can you look into that? I remember the same thing happened last time I posted something. I'm not getting emails when someone replies to the thread even though I check the check box to subscribe. Thanks!

Steve

11/13/2014 11:24:28 AM
Gravatar
Total Posts 18439

Re: html tags displayed after entering blog comment

I'm seeing that messages are being sent to you, so maybe they are being blocked on your end by spam blocking or landing in the spam folder. from my side on elastic email they look like they are not bouncing, I see a record of the email sent to you from my previous post.

11/13/2014 11:48:39 PM
ABM
Gravatar
Total Posts 37

Re: html tags displayed after entering blog comment

It's not in my spam folder but thanks for checking. I replaced my NeatHtml.js with your updated version. I had to edit the existing comment for the html tags to go away but it did fix the bug. However, now the comment shows my name as the author. Anyway to suppress this behavior and to keep the original author of blog comments even if its edited by a different user?

You must sign in to post in the forums. This thread is closed to new posts.