Plugin Directory

Test out the new Plugin Directory and let us know what you think.

HTML Special Characters Helper

Admin widget on the Add/Edit Post pages for inserting HTML encodings of special characters into the post.

2.2 (2017-02-07)

  • Change: Show helper metabox for all post types shown in the admin.
    • Now shown for custom post types that appear in the admin menu
    • Add function get_post_types()
    • Ensure post type supports the editor before enabling metabox for it
  • Change: Add metabox via 'add_meta_boxes' hook for a more targeted approach.
  • Change: Add version number when registering stylesheet.
  • Change: No need to explicitly enqueue jQuery.
  • Change: Rename add_meta_box() to more accurate meta_box_content().
  • Change: Default WP_TESTS_DIR to /tmp/wordpress-tests-lib rather than erroring out if not defined via environment variable.
  • Change: Enable more error output for unit tests.
  • Change: Note compatibility through WP 4.7+.
  • Change: Remove support for WordPress older than 4.6 (should still work for earlier versions).
  • Change: Actually remove /lang subdirectory.
  • Change: Minor readme.txt improvements.
  • Change: Update copyright date (2017).
  • Change: Minor code reformatting (add trailing comma to last array elements).
  • New: Add LICENSE file.

2.1 (2016-01-19)

  • New: Add assets/ sub-directory and move admin.js and admin.css into it.
  • New: Add support for language packs:
    • Change textdomain from 'c2c_hsch' to 'html-special-characters-helper'.
    • Remove .pot file and /lang subdirectory.
    • Remove 'Domain Path' from plugin header.
  • New: In do_admin_init(), bail early if an AJAX request is being processed.
  • New: Create empty index.php to prevent files from being listed if web server has enabled directory listings.
  • Change: Remove do_init() and move load_plugin_textdomain() into do_admin_init().
  • Change: Use different jQuery .ready() syntax.
  • Change: Minor code reformatting (spacing).
  • Change: Note compatibility through WP 4.4+.
  • Change: Explicitly declare methods in unit tests as public.
  • Change: Update screenshots.
  • Change: Update copyright date (2016).

2.0.1 (2015-09-08)

  • Change: Use dirname(__FILE__) instead of __DIR__ since the latter is only available on PHP 5.3+.
  • Change: Note compatibility through WP 4.3+.
  • Change: Minor spacing tweaks to readme.txt.

2.0 (2015-02-15)

  • Add private get_default_html_special_characters() and move characters data array into it (so default data can be directly retrieved)
  • Apply 'c2c_html_special_characters' filter before checking for a category
  • Send value of $category as addition argument to 'c2c_html_special_characters' filter
  • Add 'name' array element to character categories to allow for localized category name labels
  • Increase font size for metabox links and make category labels bold
  • Add unit tests
  • Remove is_admin() check that prevented class use outside of admin
  • Cast return value of 'c2c_html_special_characters_helper_post_types' filter as array
  • Use DIR instead of dirname(__FILE__)
  • Load textdomain on the frontend as well
  • Use phpDoc formatting for example code in readme
  • Various inline code documentation improvements (spacing, punctuation)
  • Note compatibility through WP 4.1+
  • Update copyright date (2015)
  • Regenerate .pot

1.9.3 (2014-08-30)

  • Minor plugin header reformatting
  • Minor code reformatting (bracing, spacing)
  • Change documentation links to wp.org to be https
  • Note compatibility through WP 4.0+
  • Add plugin icon

1.9.2 (2013-12-28)

  • Note compatibility through WP 3.8+
  • Update copyright date (2014)
  • Minor readme.txt tweaks
  • Change donate link


  • Add check to prevent execution of code if file is directly accessed
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)
  • Move screenshots into repo's assets directory


  • Fix to show HTML entity encoding in tooltip instead of the character
  • Change how scripts and styles are enqueued
  • Add version() to return plugin version
  • Re-license as GPLv2 or later (from X11)
  • Add 'Text Domain', 'License', and 'License URI' header tags to readme.txt and plugin file
  • Add banner image for plugin page
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+


  • Add new filter 'c2c_html_special_characters_post_type' to allow support for other post types
  • Enqueue CSS
  • Enqueue JS
  • Add register_styles(), enqueue_admin_css(), enqueue_admin_js()
  • Remove insert_admin_css(), insert_admin_js()
  • Add support for localization
  • Add .pot
  • Update readme with example and documentation for new filter
  • Minor code reformatting (spacing)
  • Note compatibility through WP 3.3+
  • Drop support for versions of WP older than 2.8
  • Update all four screenshots (now based on WP 3.3)
  • Add 'Domain Path' directive to top of main plugin file
  • Add link to plugin directory page to readme.txt
  • Update copyright date (2012)


  • Add Filters section to readme.txt and document 'c2c_html_special_characters' filter
  • Note compatibility through WP 3.2+
  • Tiny code formatting change (spacing)
  • Fix plugin homepage and author links in description in readme.txt


  • Switch from object instantiation to direct class invocation
  • Explicitly declare all functions public|protected static and class variable public static
  • Output CSS statements in a collapsed, one-line per block format
  • Rename class function admin_init() to do_init()
  • Documentation tweaks
  • Note compatibility through WP 3.1+
  • Update copyright date (2011)


  • Extract all inline JavaScript into add_admin_js() and output via admin_print_footer_scripts action
  • Extract all inline CSS into add_admin_css()
  • Only output CSS on the add/edit post/page pages
  • Remove all references to $for (which was context variable that lingered from former rte popup)
  • Remove JavaScript related to inserting text into editor and just use send_to_editor()
  • Change the 'Toggle more?' link to 'See more'/'See less' (JavaScript toggles between the two as appropriate)
  • Move hooking of actions out of constructor and into class's admin_init()
  • Rename add_css() to add_admin_css()
  • Assign object instance to global variable, $c2c_html_special_characters_helper, to allow for external manipulation
  • Rename class from 'HTMLSpecialCharactersHelper' to 'c2c_HTMLSpecialCharactersHelper'
  • Don't define class unless within admin section
  • Note compatibility with WP 3.0+
  • Minor code reformatting (spacing)
  • Remove documentation and instructions from top of plugin file (all of that and more are contained in readme.txt)
  • Add PHPDoc documentation
  • Add package info to top of file
  • Update copyright date
  • Add Upgrade Notice section to readme.txt


  • Added 78 new characters to extended characters listing: left-right arrow, carriage return arrow, lozenge, clubs, hearts, diamonds, spades, for all, there exists, empty set, intersection, union, backward difference, angle, logical and, logical or, 49 Greek characters, 5 double arrows, plus, minus, dot operator, orthogonal to, feminine ordinal indicator, masculine ordinal indicator, fraction slash, cedilla
  • Tweaked description of a few existing special characters
  • Reordered some of the existing special characters
  • Removed rich text editor toolbar button and all related code and files (including html-special-characters.php, and tinymce/*)
  • Added title attribute to links for Help and Toggle More
  • Removed create_dbx_box variable from class, since it controlled what is now the sole behavior of the plugin
  • Minor reformatting (spacing)
  • Updated screenshots
  • Updated copyright date
  • Noted compatibility through 2.8+
  • Dropped compatibility with versions of WP older than 2.6


  • Initial release

Requires: 4.6 or higher
Compatible up to: 4.7.3
Last Updated: 1 month ago
Active Installs: 1,000+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.