Title: Escaping
Last modified: April 4, 2017

---

# Escaping

 *  [cwfaraday](https://wordpress.org/support/users/cwfaraday/)
 * (@cwfaraday)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/escaping-3/)
 * Hi,
 * I’d like to upgrade to 0.3.4 from 0.3.1 but I found an issue: I use a post meta
   value with product prices as simple text strings ($1,234.88) and the “$1” now
   gives undesired effects: it shows as:
 * `name="product_price",234.88`
 * By escaping it (\$1,234.88) the problem disappears, but it’s not that simple 
   to replace all “$” in my situation. In 0.3.1 it was working just fine, i.e. showing
   the price as string without any substitutions.
 * Is it a bug? Or how do you suggest to get around it?
 * Thanks
    -  This topic was modified 9 years, 2 months ago by [cwfaraday](https://wordpress.org/support/users/cwfaraday/).
    -  This topic was modified 9 years, 2 months ago by [cwfaraday](https://wordpress.org/support/users/cwfaraday/).

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

 *  Plugin Author [EkoJR](https://wordpress.org/support/users/ekojr/)
 * (@ekojr)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/escaping-3/#post-9013038)
 * Sorry I Haven’t replied sooner. I usually try to reply within 24-48 hrs, but 
   it’s been a busy week.
 * I designed the Post Meta shortcode to grab raw (string) data, but it seems the
   dollar sign is throwing a wrench into the works.
 * Hmm, I could add this to an update, or at least look into it. I’m just worried
   about conflicts with, and possibly unnecessary, pre-formatting. The best option,
   a builtin workaround, would be to create a PHP function in a child theme that
   the [php_function] shortcode can call.
 * I’m not sure how well versed you are in PHP, but you could almost take the same
   meta shortcode function, and apply the [number_format()](http://php.net/manual/en/function.number-format.php)
   function. [This question: Add dollar sign and commas to a number?](http://wordpress.stackexchange.com/questions/20223/add-dollar-sign-and-commas-to-a-number)
   Explains how to work around this issue.
    -  This reply was modified 9 years, 2 months ago by [EkoJR](https://wordpress.org/support/users/ekojr/).
 *  Thread Starter [cwfaraday](https://wordpress.org/support/users/cwfaraday/)
 * (@cwfaraday)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/escaping-3/#post-9088987)
 * Hi EkoJR,
 * the same issue appears with the $ sign in post titles, on which I’m not sure 
   how I could apply a shortcode.
 * For example, a common title like “Best under $500” results in “Best under 0”.
 * Any ideas?
 * Thanks
    Chris
 *  Plugin Author [EkoJR](https://wordpress.org/support/users/ekojr/)
 * (@ekojr)
 * [9 years ago](https://wordpress.org/support/topic/escaping-3/#post-9166623)
 * Still unsure exactly why this is occurring. My first thought is the $ is a unique
   key character to PHP.

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

The topic ‘Escaping’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-post-list.svg)
 * [Advanced Post List](https://wordpress.org/plugins/advanced-post-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-post-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-post-list/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-post-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-post-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-post-list/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [EkoJR](https://wordpress.org/support/users/ekojr/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/escaping-3/#post-9166623)
 * Status: not resolved