Title: [Plugin: SyntaxHighlighter Evolved] HTML entities
Last modified: August 19, 2016

---

# [Plugin: SyntaxHighlighter Evolved] HTML entities

 *  [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/)
 * Hello,
 * I’m almost getting this plugin to work. The last remaning problem is escaping
   of HTML entities.
 * See this: [http://img.skitch.com/20100710-x353h9g4fwnt2cfne79pfk9pbw.png](http://img.skitch.com/20100710-x353h9g4fwnt2cfne79pfk9pbw.png)
 * And here is my code: [http://img.skitch.com/20100710-dbdtkj5h76gn3idsbw9tq7ae27.png](http://img.skitch.com/20100710-dbdtkj5h76gn3idsbw9tq7ae27.png)
 * SyntaxHighlighter Evolved is the only plugin I have enabled.
 * Thanks for the help.

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

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576323)
 * Try using HTML view to remove the possibility that it’s the visual editor that’s
   causing the problems.
 *  Thread Starter [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576432)
 * I am using the HTML editor. I even disabled the visual editor in my profile settings.
 * Thanks for the help.
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576433)
 * Can you please post the code here so I can copy/paste it and attempt to reproduce?
   Thanks.
 *  Thread Starter [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576465)
 * Sure thing…
 * [code]
    require 'rubygems' require 'activesupport' dt = DateTime.now puts dt.
   to_f # => 1240455468.91318 t = YAML.load(dt.to_yaml) puts t.class.name # => Time
   puts t.to_f # => 1240455468.0 [/code]
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576472)
 * I can’t reproduce this. I tried on both my localhost test blog and WordPress.
   com (where the plugin is also in use):
 * [http://alexpublictest.wordpress.com/2010/07/11/cjbottaro/](http://alexpublictest.wordpress.com/2010/07/11/cjbottaro/)
 * I copy/pasted your above code directly into the HTML editor and hit publish.
 *  Thread Starter [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576486)
 * That’s strange. That example is working for me now too. Maybe I was seeing a 
   cached version of the page or something. Can you try this one?
 * `
    [ruby] module ActiveRecord module Associations module ClassMethods
 *  def construct_finder_sql_for_association_limiting(options, join_dependency)
   
   scope = scope(:find) || {} order = [options[:order], scope[:order]].compact.join(',')
 *  # Only join tables referenced in order or conditions since this is particularly
   slow on the pre-query.
    tables_from_conditions = conditions_tables(options) tables_from_order
   = order_tables(options) all_tables = tables_from_conditions + tables_from_order
   distinct_join_associations = all_tables.uniq.map{|table| join_dependency.joins_for_table_name(
   table) }.flatten.compact.uniq
 *  is_distinct = !options[:joins].blank? || include_eager_conditions?(options, 
   tables_from_conditions) || include_eager_order?(options, tables_from_order)
    
   sql = "SELECT " if is_distinct sql << connection.distinct("#{connection.quote_table_name
   table_name}.#{primary_key}", order) else sql << primary_key end sql << " FROM#{
   connection.quote_table_name table_name} "
 *  if is_distinct
    sql << distinct_join_associations.collect(&:association_join).
   join add_joins!(sql, options, scope) end
 *  add_conditions!(sql, options[:conditions], scope)
    add_group!(sql, options[:
   group], scope)
 *  if order and is_distinct
    connection.add_order_by_for_association_limiting!(
   sql, :order => order) else add_order!(sql, options[:order], scope) end
 *  add_limit!(sql, options, scope)
 *  return sanitize_sql(sql)
    end
 *  end
    end end [/ruby]
 *  Thread Starter [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576487)
 * Here’s a pastie for better formatting: [http://pastie.org/1039668](http://pastie.org/1039668)
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576499)
 * Also works fine for me. Dunno what to tell ya.
 * [http://alexpublictest.wordpress.com/2010/07/11/cjbottaro-2/](http://alexpublictest.wordpress.com/2010/07/11/cjbottaro-2/)
 *  Thread Starter [cjbottaro](https://wordpress.org/support/users/cjbottaro/)
 * (@cjbottaro)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576502)
 * Ok, something really weird is going on. I think my WordPress install just got
   into a weird state.
 * So when I preview that example code, it looks messed up for me, but then I updated
   the post and it looked fine. Then I previewed it again after the update and it
   still looked fine.
 * So I thought maybe it’s the initial preview before you publish that is messed
   up. So I made a new post to test it… and everything worked fine. Ugh, frustrating.
   Computers (and computer programs) are supposed to be deterministic… 😛
 * I guess it could be a multitude of things… the Blogger importer pulling in posts
   incorrectly, maybe it was the way I copied and pasted the code, dunno.
 * Anyway, sorry for wasting your time.
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576507)
 * It could be an issue with my plugin as preview may not use the same filters.
 * Either way don’t rely on preview to debug things. 🙂
 *  [Charles Merriam](https://wordpress.org/support/users/charles-merriam/)
 * (@charles-merriam)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576595)
 * Just to let you know, I had a similar problem with a similar solution.
    - For an unpublished draft, preview works correctly
    - For a published article, preview does not work correctly
 * Is not the precision of computer science truly a thing of awe?

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

The topic ‘[Plugin: SyntaxHighlighter Evolved] HTML entities’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [Charles Merriam](https://wordpress.org/support/users/charles-merriam/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-html-entities/#post-1576595)
 * Status: not resolved