Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added php function htmlspecialchars() to single-loop.php #7

Open
wants to merge 7 commits into from

1 participant

@RhealPoirier

htmlspecialchars() allows all the html characters to be properly converted to entities and avoids showing a textarea tag inside another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 7, 2012
  1. Added htmlspecialchars() to html section in loop-single

    Rheal Poirier authored
Commits on Feb 10, 2012
Commits on Feb 27, 2012
  1. Added htmlspecialchars() to html section in loop-single

    Rheal Poirier authored
Commits on Mar 9, 2012
  1. Merge branch 'master' of github.com:RhealPoirier/Pears

    Rheal Poirier authored
    Conflicts:
    	loop-single.php
  2. update from source

    Rheal Poirier authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  loop-single.php
View
2  loop-single.php
@@ -35,7 +35,7 @@
<div id="markup" class="mod">
<h3 class="label">HTML</h3> <a href="#" class="clip" title="select code for copying"><img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" alt="copy" /></a>
<textarea class="mod-ta">
-<?php $key="html"; echo get_post_meta($post->ID, $key, true); ?>
+<?php $key="html"; echo esc_textarea(get_post_meta($post->ID, $key, true)); ?>
</textarea>
</div>
Something went wrong with that request. Please try again.