Validate form input

This commit is contained in:
Ben Goldsworthy 2021-01-23 13:26:25 +00:00
parent 3a97551bf1
commit abd8c65ee7
5 changed files with 168 additions and 150 deletions

View file

@ -12,7 +12,7 @@
<header style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<div>
<h1 id="post-title">
<?php echo esc_html( get_the_title() ); ?>
<?php echo wp_kses_post( get_the_title() ); ?>
</h1>
<?php
@ -168,13 +168,13 @@
// phpcs:disable WordPress.CodeAnalysis.AssignmentInCondition
$i = 1;
while ( $section_title = get_post_meta( get_the_ID(), 'ToC' . $i, true ) ) :
?>
?>
<li>
<a href="#section-<?php echo esc_attr( $i++ ); ?>">
<?php echo wp_kses_post( $content ); ?>
<?php echo wp_kses_post( $section_title ); ?>
</a>
</li>
<?php
<?php
endwhile;
// phpcs:enable
?>