Home › Forums › General Issues › Question about updates coming in 6.2.7 › Reply To: Question about updates coming in 6.2.7
Hi John,
Thanks for your reply. Just to be sure I understand, if the developer did this:
<?php if (get_sub_field('right_heading')) : ?> <h2><?php the_sub_field('right_heading'); ?></h2> <?php endif; ?>
then 6.2.7 will properly escape the H2 element? However if the developer did this:
<?php if (get_sub_field('right_heading')) : ?> <h2><?php echo get_sub_field('right_heading'); ?></h2> <?php endif; ?>
then it will not escape the H2 element. Is that correct?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.