AnsPress_Validation::encode_pre_code( string $field )
Description #
Encode contents inside pre and code tag
Parameters #
- $fieldstring (Required)
Source #
File: includes/class/validation.php
private function encode_pre_code($field) { $this->fields[$field] = preg_replace_callback( '/<pre.*?>(.*?)<\/pre>/imsu', array( $this, 'pre_content' ), $this->fields[$field] ); $this->fields[$field] = preg_replace_callback( '/<code.*?>(.*?)<\/code>/imsu', array( $this, 'code_content' ), $this->fields[$field] ); }
Expand full source code Collapse full source code View on GitHub: includes/class/validation.php:216
Add your comment