Changeset 10685
- Timestamp:
- 02/17/2021 04:21:33 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-fixer/wporg-gp-translation-fixer.php
r10684 r10685 98 98 ); 99 99 100 // Try correcting HTML tags containing extra spaces, eg </ p>, <a href="#" >, < / p>, relies upon the original having well-formed HTML. 101 $translation = preg_replace( 102 // Opening HTML element, Tag Name, Attributes (zero or more), Closing HTML element 103 '!<\s*(/)?\s*' . '([a-z]+)\s*' . '(\s+[a-z]+=["\'][^>]+["\'])*' . '\s*>!i', 104 '<$1$2$3>', // 1: Closing slash, 2: Tag, 3: Attributes 105 $translation 106 ); 107 100 108 break; 101 109 }
Note: See TracChangeset
for help on using the changeset viewer.