WordPress.org

Ready to get started?Download WordPress

Forums

WP-Syntax
Code between < > not preserved in comments (1 post)

  1. msquarci
    Member
    Posted 1 year ago #

    Dear dev(s),

    I need to let users post their source code in comments. In order to use <pre lang=""> in comments, I uncommented the relevant part in wp-syntax/wp-syntax.php, as suggested here and it's working fine.

    The problem is that all the text between '<' and '>' is wiped from the post (brackets included). As an example, the following comment:

    x = 3 < 4 or 5 > 2

    is saved as:

    x = 3 2

    Is there a way to fix?

    Thanks for the good work,
    Cheers

    Marco

    http://wordpress.org/extend/plugins/wp-syntax/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.