Why does WP strip backslashes from shortcode attributes?
-
If I have a shortcode attribute with the value “Rusty’s ebay_RSS /\ preset”, wordpress will strip the backslash when parsing the shortcode attributes, giving “Rusty’s ebay_RSS / preset” as the attribute value.
Looking at shortcode_parse_atts, I see it is running stripcslashes on the attribute values. I just wondered why this was, and if there is any documentation on this behaviour?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Why does WP strip backslashes from shortcode attributes?’ is closed to new replies.