Remove p & br tags from the input field

This does not replace the line break, so they're re-added when the value is saved.
This commit is contained in:
Kelly Dwan 2019-11-22 11:09:54 -05:00
parent 8dffcc509b
commit a58b5e958c
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -69,6 +69,6 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
required
<?php echo $readonly ? 'readonly' : ''; ?>
><?php /* phpcs:ignore -- php tags should be on the same line as textarea to prevent extra whitespace */
echo esc_html( $data['org-description'] );
echo esc_html( str_replace( [ '<p>', '</p>', '<br />' ], '', $data['org-description'] ) );
/* phpcs:ignore */ ?></textarea>
</div>