Support » Themes and Templates » template return the br tag not as xhtml. How to fix?

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘template return the br tag not as xhtml. How to fix?’ is closed to new replies.