mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
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:
parent
8dffcc509b
commit
a58b5e958c
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue