Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML tags appear in the forum


  • maketheest
    Participant

    @maketheest

    i have added this code from gist.github.com/ntwb/7797990 but html tags appeared on website like
    <!–more–>Go joging –> go jogging

    <span style=”line-height: 1.5;”>It’s help me have a good job–>It helps me have a good job</span>

    <!–more–>

    anyone have solution ?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

  • Robkk
    Moderator

    @robkk

    Edit the code in the Gist and add style to the Span tag like so.

      // Span
    ‘span’ => array(
    ‘class’ => true,
    ‘style’ => true,
    ),
    

    I am not sure why you would even want the more tag, as it might be useless in the frontend of your site and bbPress forum posts.


    maketheest
    Participant

    @maketheest

    Dear robkk,
    Thank for your answer.
    The first ,i don’t know why more tag is appeared on my website. This made me confused.
    The second, i have edited like you say above but html tag is appeared origin. When i click edit comment and then text tab after someone comment, i see error . A lot of html tag appeared that contain it;. Can you expalin to me why it appear and how to avoid it ?


    maketheest
    Participant

    @maketheest

    another example about this error
    a

    . When i click edit comment and then text tab after someone comment, i see

    a


    Robkk
    Moderator

    @robkk

    @maketheest

    When you enable the tinymce editor in bbPress, for now you have to edit that snippet you posted and edit it for every buttons html tags that you will end up using. Whenever you may be quoting another user using a different plugin you may need to use the paste as a text php code snippet in the guide.

    https://codex.bbpress.org/enable-visual-editor/

    Read this WordPress guide about the character entities.

    https://codex.wordpress.org/Writing_Code_in_Your_Posts

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar