Forums

Having trouble with br and paragraph tags (3 posts)

  1. thorswitch
    Member
    Posted 1 year ago #

    (I'm using the curly brackets in this post instead of the pointy ones so that the code won't come out funky. When working on my site, I use the proper pointy ones)

    I'm using my WP blog to crosspost to my Posterous blog, but because the Visual Editor strips {br} tags as invalid XHTML, when the text gets to Posterous, it's all one big paragraph.

    How do I get the Visual Editor to either be sure to include {p} and {/p} tags at the start and end of each paragraph? Or is there a way to get it to retain the {br} tags? Might there be a replacement Visual Editor that doesn't strip the tags? It just kind of defeats the point of crossposting if I have to go manually re-edit it at my posterous site.

    Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try using <br />.

  3. thorswitch
    Member
    Posted 1 year ago #

    Thanks for responding, but I have tried that and it still strips the <br /> tags out. In the documentation, it says that it will strip the <br /> tags from the visual editor because it only produces valid XHTML. So, in that sense, it's working the way it's designed to.

    My problem is that I need it to include either the <br /> tags or replace the <br /> tags with <p> and </p> at the beginning and end of each paragraph so that when I have it crosspost to another blog, there are actually paragraph breaks between the paragraphs.

    What I'm asking is if there is a means of getting it to change the <br /> tags to <p> and </p> or if there is a replacement rich/wysiwyg editor I can use that will let the <br /> remain in place.

Topic Closed

This topic has been closed to new replies.

About this Topic