• Resolved sheridanbeer

    (@sheridanbeer)


    Hi

    I was wandering if it would be possible to add hyperlinks to the allowed html values. That way it wouldn’t sanitize all my links that i would like customers to have access to when they purchase specific products. I imagine this in theory is fairly simple for someone who fully understands php but for someone like myself who has a limited knowledge it has proven quite tricky to figure out.

    Please help

    • This topic was modified 7 years, 3 months ago by sheridanbeer.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sheridanbeer

    (@sheridanbeer)

    Found the fix

    I had to add 'a' => array('href' => 1, 'title' => 1), into the $allowed_html array

    Plugin Author alexmustin

    (@alexmustin)

    Fantastic work, sheridanbeer!

    I have it as:

    'a' => array(
    	'title' => array(),
    	'class' => array(),
    	'style' => array(),
    	'href' => array(),
    	'target' => array()
    ),

    … that way you can assign all those attributes to the anchor element.

    I’ll be sure this is included in the next update.

    Thanks!

    Thread Starter sheridanbeer

    (@sheridanbeer)

    Thanks for the help, @alexmustin

    I will add this code in now to make an already great plugin so much better.

    Keep up the Great work

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowing Hyperlinks’ is closed to new replies.