Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added htmlspecialchars() to html section in loop-single
  • Loading branch information
Rheal Poirier committed Feb 27, 2012
commit c894a973ceec1ebb59782535d716e69dbe853f6b
2 changes: 1 addition & 1 deletion loop-single.php
Original file line number Diff line number Diff line change
@@ -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="/wp-content/themes/pears/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 htmlspecialchars(get_post_meta($post->ID, $key, true)); ?>
</textarea>
</div>