WordPress.org

Ready to get started?Download WordPress

Forums

WP Code Highlight
[resolved] Is there any way to keep it from escaping '>' (greater than) in a string? (3 posts)

  1. bretttolbert
    Member
    Posted 1 year ago #

    The '>' in the "Usage" string is being converted to the HTML escape code (&\gt;).

    import sys
    import json
    if len(sys.argv) != 2:
        print 'Usage: jsonminify.py infile > outfile'
    else:
        fname = sys.argv[1]
        with open(fname,'r') as f:
            data = json.load(f)
            print json.dumps(data)

    http://wordpress.org/extend/plugins/wp-code-highlight/

  2. acalbert
    Member
    Plugin Author

    Posted 1 year ago #

    "Dashboard"->"Users"->"Your Profile"->"Disable the visual editor when writing"

  3. bretttolbert
    Member
    Posted 1 year ago #

    That worked. Thanks. And thanks for this plugin, it's great.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic