Validate::pre_content( array $matches )
Description #
Callback for replacing contents inside <pre>
tag.
Parameters #
- $matchesarray (Required) Matches.
Source #
File: lib/class-validate.php
private static function pre_content( $matches ) { preg_match( '/aplang\=\\"([A-Za-z0-9 _]*)\\"/', $matches[1], $lang ); $lang = empty( $lang ) ? 'text' : esc_attr( $lang[1] ); return '<pre>' . esc_html( $matches[2] ) . '</pre>'; }
Expand full source code Collapse full source code View on GitHub: lib/class-validate.php:238
Add your comment