template return the br tag not as xhtml. How to fix? (3 posts)

  1. axew3
    Posted 5 years ago #

    Hello all boys, i have search for something about this issue somewhere shortly but nothing have come out so i hope there is someone that can help with an answer or a link to a solution for this :)

    i have a template on a custom page in wordpress that output the tag
    <br />
    as html and not xhtml, it return:
    my hope on using the php nl2br function have also fail on solve the issue, the output source return the
    tag byt he way and in any case. Thank you

    p.s it is the last wordpress 3.0 template

  2. mkirkwag
    Posted 5 years ago #

    Well, I'm not a boy and am having a lot of trouble translating what you are saying, but I *think* I have a similar problem. I'm entering
    for a line break (return). When I save the draft and preview the page, there is no return and the code is
    , which I'm guess is the xhtml version of
    . This would be fine, but the line isn't breaking. Does it need and end tag? Sorry - I'm not code savvy at all. Thanks for your help!

  3. mkirkwag
    Posted 5 years ago #

    Well, axewww, I solved my issue - not sure if it's the answer to yours. You can't read the above because I didn't think about notating the code with the "code" tag. <br /> is xhtml for <br>. My template is xhtml, so it converts the tags. I solved it with a couple of <p></p> tags instead. Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.