Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Mar 14, 2016 7:37 am Post subject: How can I ignore some tags when validating HTML? |
|
|
Some times when validating HTML you may not be concerned if some markup tags are not present in the localized text. The standard "Match HTML Tags" validation rule matches all HTML tags using the following Regx Pattern:
You can change this to ignore certain tags by modifying the RegEx pattern. For instance to ignore <b></b> and <i> </i> tags change the RegEx pattern to:
Code: | (?!(</?b>|</?i>))<.*?> |
_________________ Infralution Support |
|