WordPress.org

Support

Support » Plugins and Hacks » GD bbPress Tools » Clicking to the "quote" link adds html linebreaks (br) tags to the quoted post

Clicking to the "quote" link adds html linebreaks (br) tags to the quoted post

Viewing 4 replies - 1 through 4 (of 4 total)
  • I added a

    qout = qout.replace(/<br>/g, "");

    at line 33 in gd-bbpress-tools.js that solves the problem for me.

    But this is just a solution for now.. 🙂

    same for the latest version.
    Is it only me who has this problem?

    Plugin Author Milan Petrovic

    @gdragon

    Quote is taking whatever bbPress rendered for the text into quote, and if that contains line breaks, it will be in the quotes.

    the problem is a little bit di#erent.

    1. a user posts normal text with normal linebreaks (enter key)
    2. the output of bbpress seems to include linebreak br tags for each enter-key-linebreak.
    3. quoting a text from another user will get the br tags from bbpress output into the quoted text.
    4. bbpress does not allow br tags in postings, so the br tags will not be linebreaks, the html-code is displayed i.side the quoted text..
    so br tags in quoted text should be filtered out imho.

    maybe my description was not good enough?

    thanks
    florian

    ps:its almost the same with the div wrapping quotes title and bidy. quoting a quote will show div code inside the posting. div is also not allowed in posts by bbpress

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Clicking to the "quote" link adds html linebreaks (br) tags to the quoted post’ is closed to new replies.
Skip to toolbar