1.   Closed

    Make comments display HTML Properly

    by Patrick Mattei on September 21, 2012

    Ticket comments display code wrong

    http://helpdesk.risingresults.com/ticket/edu-dynamics-walden/  

  2. Patrick Mattei
    about 14 years ago

    Added the following code to ‘single-ticket.php’

    /*
    Plugin Name: Yeah Strip the HTML in The Comments, Baby!
    Plugin URI: http://wordpress.org/support/topic/165860
    Description: Disables XHTML support in comments
    Author: Pinoy.ca
    Version: 0.1
    Author URI: http://wordpress.org/support/topic/165860
    */

    function strip_tags_filter($text) {
    return strip_tags($text);
    }

    // run this if you want to strip them before saving
    // CAREFUL: may cause data loss
    add_filter(‘pre_comment_content’,’strip_tags_filter’);

    // run these if you want to strip them before displaying
    add_filter(‘comment_excerpt’,’strip_tags_filter’);
    add_filter(‘comment_text’,’strip_tags_filter’);
    add_filter(‘comment_text_rss’,’strip_tags_filter’);

  3. Patrick Mattei
    about 14 years ago

    Change made in single-ticket.php

  4. Patrick Mattei
    about 14 years ago

    1. Status changed from New to Closed.