Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$4
Apostrophes being escaped on options page output
The content is not run off posts but is from a wordpress options panel.
The content being saved in the options panel is escaping ' this and outputing /'
How can I add a function to eliminate this problem.
This is sample of how items are retrieved:
<div class="pic"></div><?php $pandagaming_01_title = get_option('pandagaming_01_title'); ?><?php $pandagaming_01_desc = get_option('pandagaming_01_desc'); ?>
<div class="box"> <span id="lobster3" class="greendark"><?php echo $pandagaming_01_title; ?></span>
<p><?php echo $pandagaming_01_desc; ?></p>
</div>As you see there is no wordpress loop.
This question has been answered.
pandragon | 01/20/11 at 5:58pm
Edit
(2) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
01/21/11
1:38amJohn Cotton says:<p><?php echo esc_attr($pandagaming_01_desc); ?></p>
- 01/20/11 6:24pm
pandragon says:Tried that didn't seem to budge the /'
do I need to define esc_attr in functions? - 01/20/11 6:28pm
pandragon says:<?php echo stripslashes($pandagaming_01_title); ?>
Worked a treat! Thanks John :) Wouldn't have gotten there without you! - 01/20/11 6:29pm
John Cotton says:Sorry, stripslashes was what I meant - esc_attr goes the other way.....it's too late in the day!!!!
- 01/20/11 6:24pm
-

Last edited:
01/21/11
1:36am
This question has expired.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
