Support » Plugin: Custom Website Data » Escape the equals char

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DannyWeeks


    Hi Stuart,

    Im glad you like the plugin! It isn’t really possible to store HTML to protect against XSS attacks. There is however other ways to do it using CWD and customising your theme a little.

    Similarly to how I have helped somebody else recently you can store the data in CWD and create your own function/shortcode to take advantage of both.

    If you can give me some specifics about what you plan to do I can help you out no problem but the basic premise is:

    Create a function in your theme’s functions.php file and register it as shortcode if you plan to use it as shortcode too. In that function using the CWD functions as you wish; just be careful to wrap it in an if statement incase CWD is disabled if (function_exists('cwd_getThe') {}


    Thread Starter Stu00


    Fantastic! Thanks so much!

    I passed in the array of data, regexed for expected chars and wrapped the code in the function_exists('cwd_getThe') returning null by default.

    I tested by disabling CWD – all good!

    Thanks so very much.


    Plugin Author DannyWeeks


    Good stuff mate, any other problems just give me a shout!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Escape the equals char’ is closed to new replies.