Problem:
Custom fields with options that include special characters such as apostrophes when saved to the database have such characters escaped (e.g. "John\'s dog").
If you output these field values with raw output it shows the escaping.
Solution:
You can use the PHP stripslashes function in a custom shortcode to output the raw value without escaping, as described below: https://toolset.com/forums/topic/how-to-convert-raw-database-data-to-simple-readable-format/#post-920347
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 4 months ago.
Assisted by: Nigel.