humanmade / altis-analytics

Analytics module for Altis
https://www.altis-dxp.com/resources/docs/analytics/
GNU General Public License v3.0
9 stars 3 forks source link

Document best practices for escaping the title with A/B tests #332

Open roborourke opened 2 years ago

roborourke commented 2 years ago

The default behaviour for the A/B tests feature is to filter the output of get_the_title() - the recommendation is for themes to use the_title() to output the post title when possible, otherwise they will need to escape the output using wp_strip_all_tags().