| 301 | | sTags += '|ABBR|HR' ; |
| 302 | | |
| 303 | | var oRegex = new RegExp( '<(' + sTags + ')(?!\w|:)', 'gi' ) ; |
| 304 | | html = html.replace( oRegex, '<FCK:$1' ) ; |
| 305 | | |
| 306 | | oRegex = new RegExp( '<\/(' + sTags + ')>', 'gi' ) ; |
| 307 | | html = html.replace( oRegex, '<\/FCK:$1>' ) ; |
| | 296 | sTags += sTags.length > 0 ? '|ABBR' : 'ABBR' ; |
| | 297 | |
| | 298 | var oRegex ; |
| | 299 | if ( sTags.length > 0 ) |
| | 300 | { |
| | 301 | oRegex = new RegExp( '<(' + sTags + ')(?!\w|:)', 'gi' ) ; |
| | 302 | html = html.replace( oRegex, '<FCK:$1' ) ; |
| | 303 | |
| | 304 | oRegex = new RegExp( '<\/(' + sTags + ')>', 'gi' ) ; |
| | 305 | html = html.replace( oRegex, '<\/FCK:$1>' ) ; |
| | 306 | } |
| | 307 | |
| | 308 | // Protect some empty elements. We must do it separately becase the |
| | 309 | // original tag may not contain the closing slash, like <hr>: |
| | 310 | // - <meta> tags get executed, so if you have a redirect meta, the |
| | 311 | // content will move to the target page. |
| | 312 | // - <hr> may destroy the document structure if not well |
| | 313 | // positioned. The trick is protect it here and restore them in |
| | 314 | // the FCKDocumentProcessor. |
| | 315 | sTags = 'META' ; |
| | 316 | if ( FCKBrowserInfo.IsIE ) |
| | 317 | sTags += '|HR' ; |
| | 318 | |
| | 319 | oRegex = new RegExp( '<((' + sTags + ')(?=\s|>)[\s\S]*?)/?>', 'gi' ) ; |
| | 320 | html = html.replace( oRegex, '<FCK:$1 />' ) ; |