ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HTML Warnings for '& amp;'

August 14, 2008 10:03am

Subscribe [3]
  • #1 / Aug 14, 2008 10:03am

    glamorous_be

    19 posts

    Hi,

    This is the first time that this “error” occurs…

    In my HTML-page I use

    &
    instead of
    &
    so I shouldn’t get any errors/warnings… But for a unknown reason the templates parse the
    &
    to
    &
    instead of my
    &

    Which causes again some warnings…

    Anybody an idea? The text with the

    &

    is static, so it isn’t from any weblog…

    Thanks!

  • #2 / Aug 14, 2008 10:07am

    Andy Harris

    958 posts

    Do you have a link you can post? Sounds weird!

  • #3 / Aug 14, 2008 10:13am

    glamorous_be

    19 posts

    Sorry! My post is also messed up because I can’t use the & amp; inhere..

    A line from my template:

    <label id="lbl_street"  for="street">street & nr</label>
    <input type="text" name="street" id="street" />

    Output in my browser source or when I check it with W3C Validator:

    <label id="lbl_street"  for="street">street & nr</label>
    <input type="text" name="street" id="street" />

    Almost the same, but my template parsed ‘&’ to ‘&’

    Thanks!

  • #4 / Aug 14, 2008 10:26am

    Andy Harris

    958 posts

    Hm, I can’t help you there sorry. It seems to work as expected on my templates, so if there’s a setting that changes this I’m not sure what it is.

  • #5 / Aug 14, 2008 5:47pm

    Tyssen

    756 posts

    Could it be ‘Automatically Convert High ASCII Text to Entities’ under CP Home ›  Admin ›  Section Administration ›  Global Section Preferences ?

  • #6 / Aug 16, 2008 8:19am

    glamorous_be

    19 posts

    This option is “no” :-s

  • #7 / Aug 16, 2008 10:16am

    Derek Jones

    7561 posts

    That wouldn’t affect your template submission in any case (nor entry input for that matter).  Perhaps there is some filter on the server that is converting POST data upon submission.  ExpressionEngine certainly doesn’t alter what you input into your templates, nor change it during output.

  • #8 / Aug 18, 2008 5:21am

    glamorous_be

    19 posts

    There’s no PHP on the page and on my other pages I haven’t this problem… It seems like only the entities inside my freeform that are converted…

  • #9 / Aug 18, 2008 10:45am

    Derek Jones

    7561 posts

    Wait, what do you mean “inside my freeform”?  I think we haven’t gotten the full context here, glamorous_be.

  • #10 / Aug 18, 2008 11:58am

    glamorous_be

    19 posts

    Well,

    It seems to be occure only inside my <form> tags created by the Freeform module…
    When I use & amp; or & euro; or something like that outside my form in the same template, everything is fine. But when i use those characters inside the form in an input-tag or label then it’s parsed wrong…

    Thanks for your help!

  • #11 / Aug 18, 2008 12:11pm

    Derek Jones

    7561 posts

    Sounds like something the FreeForm module is doing intentionally.  You’ll need to get assistance for this over at Solspace’s forums.

  • #12 / Aug 18, 2008 12:32pm

    glamorous_be

    19 posts

    Thanks Derek, I’ve posted the bug on their forum, hope I can get some response soon!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases