Support

Home Forums Event Espresso Premium please allow Target html tag in

please allow Target html tag in

Posted: August 24, 2015 at 12:35 am

Viewing 7 reply threads


benjamin b

August 24, 2015 at 12:35 am

For the next update, for the Paypal Standard Settings -> Description, please add TARGET=”” to the allow list of html tags so that I can have people open a screenshot (of how to checkout on paypal as a Guest) in a new window so it does not interrupt their checkout process. I’ve had it this way but now see you’ve added tag restrictions and can no longer update. I get this error:

—————————
Only the following HTML tags are allowed:
address,a,abbr,acronym,area,article,aside,audio,b,big,blockquote,br,button,caption,cite,code,col,colgroup,del,dd,dfn,details,div,dl,dt,em,fieldset,figure,figcaption,font,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,i,img,ins,kbd,label,legend,li,map,mark,menu,nav,p,pre,q,s,samp,span,section,small,strike,strong,sub,summary,sup,table,tbody,td,textarea,tfoot,th,thead,title,tr,track,tt,u,ul,ol,var,video
—————————–


benjamin b

August 24, 2015 at 12:39 am

Also note that the “Only the following HTML tags are allowed:” error when displayed, forces the screen width (and thus all the input fields set to 100%) to go far beyond it’s normal range in the Admin area due to no spaces in the tag list.


benjamin b

August 24, 2015 at 12:39 am

And thanks!


Dean

August 24, 2015 at 6:32 am

Hi Benjamin,

target=”_blank” for instance, is not an HTML tag, it’s part of the anchor tag (<a>), so it as already an allowed tag.

As such something like

<a href="http://google.com" target="_blank">A link</a>

is acceptable in the PayPal description (tested in EE 4.8.4).

Thanks for the heads up about that error message, I’ll as the devs to fix it.


benjamin b

August 24, 2015 at 2:57 pm

Your example link worked for me and then after some further playing around, I discovered the error was occuring because because my link had an extra space before the target portion:


A link

Perhaps it’s worth fixing the pattern match to allow for the occasional accidental stray space like this, but glad I got it working now! Thanks.


benjamin b

August 24, 2015 at 3:00 pm

It appears my code didn’t get marked up properly in the last post.
Here’s what I meant to paste in to show the extra space before the target that was resulting it the error:
<a href="http://google.com" target="_blank">A link</a>


benjamin b

August 24, 2015 at 3:02 pm

well it looks like the extra space doesn’t show there, but basically, if you have an extra space after the href=”” and before the target=”_blank”, it causes the error, I think you get what I mean.


Dean

August 25, 2015 at 5:39 am

Thanks for letting us know about that, not sure why it would do that as I believe we use WordPress’ own kses filter for the allowed tags.

Either way, I’m glad you got it sorted!

Viewing 7 reply threads

The support post ‘please allow Target html tag in’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso