I have tried all the formats available filterd, full, and PHP. After I save a job posting and then view it, anything in there such as DIV's SPAN's etc for styling do not show up. When I go to edit the listing I see this type of coding
& l t ;strong & gt;Location:& lt;/strong& gt; New Jersey, North Carolina, Mass., Florida <br /& gt;
I put some spaces in there since, this comment form is converting
Comments
Comment #1
gmarus commentedThanks for the report. Yes, this is a known issue with the last packaged release and was fixed in HEAD and both development branches. The next release will, of course, have the fix as well.
In the interim, please try the current 6.x-1.x-dev (which is quite stable BTW) and report back whether the problem remains.
Comment #2
trifolic commentedThanks for the quick reply :) I upgraded to the DEV version, the changing to the & l t; tags is no longer happening, however SPAN, DIV, and some other tags are getting stripped on save. The STRONG, B BR P LI UL OL tags appear to still work, and stay in there. Almost like it's stuck in filtered mode now. Better than before though.
Comment #3
gmarus commentedThe field will use whatever filter is set to apply when the form is submitted so if you've got it set to 'Full Text' (ie. all html allowed) it should honour that. If it appears to be 'sticking' with a previous setting, try clearing the cache first before setting it again. You can do this from the 'Performance' page under 'Site Configuration'. In any case, please try this and let me know if that fixes it.
Comment #4
trifolic commentedI have page caching disabled, however I still clicked on Clear Cache, I also deleted the job posting entry, and just created a new one, ensuring that things were all filled out correctly, still getting the same problem, all extended HTML is getting stripped out.
Comment #5
gmarus commentedOkay, I'll leave this open and look into it further.
In the meantime you can get around this by adding the tags you want to allow by editing the filter itself by going to: Administer>>Site Configuration>>Input Formats and choosing the 'configure' link alongside Filtered HTML item in the list. Then choose the "Configure" tab along the top and look for the text box that says 'allowed HTML tags'.
Comment #6
trifolic commentedThat seemed to work :) Thank you for all your help so far, it is much appreciated. If you need any testers out with newer versions let me know.
Comment #7
gmarus commentedThat was just a workaround but I've just committed a better fix and released it as a new package so please upgrade and check it when you get a chance and let me know if you have any more problems with it.
Also, you may or may not want to revert those filter modifications (depending on your requirements) I suggested once you upgrade to the newest package. Generally tampering with the defaults should be done with a fair amount of caution so as to not open yourself up to any badness.
Thanks for the offer w/regards to testing. I may take you up on that sometime.
Comment #8
trifolic commentedNow your going to hate me, updated and it works great, NOW the only thing that appears to be acting funky is the title, I don't need this fixed, just bringing it to your attention, in the title I used the & symbol now, in the title it appears fine, however under the "Current Jobs" block it is displaying as & amp; (w/o space of course)
Thank you again
Hopefully someday I can learn this stuff and help all you contributers out.
Comment #9
gmarus commentedIt should still display fine on the page itself, though -- you're just talking about the text field on the input form when it's showing what's already been entered, right?
It's pretty harmless but I suppose a little disquieting (and ugly) if you don't know why it does this ("It's not a bug...it's a feature!") I was far more concerned with the description output since that was a bug insofar as it prevented the level of custom styling one would expect from that content area.
Still, I'll reconsider whether this extra filtering is even required and change it if necessary. Thanks again for the feedback!
Comment #10
gmarus commentedOops. I just re-read your post a little more closely and see that it is an issue with output (provided you use & or other special entity chars). Disregard my previous post (most of it anyway). I'll fix this shortly and commit it to the dev branches, though, rather than a full release since it is a bit of a corner case.
Comment #11
gmarus commentedAs followup I believe I've traced the problems to some unnecessary filtering calls and think I've resolved the output display issues with the latest commits to HEAD and both 5.x and 6.x development branches but they'll take a few hours to appear in the package listings as snapshots are only repackaged twice (once?) per day.
If you feel up to it, I'd appreciate it if you could test over the next day or two and report back your results so I can close this or refine further. Thanks again.
Comment #12
trifolic commentedHope you had a good weekend, I have updated to the latest one, and tested your fixes with all kinds of characters and symbols, and everything seems to be rendering good now, in the node itself and in the Current Jobs block as well. Thanks again
Comment #13
trifolic commented