| @@ -84,14 +84,14 @@ | ||
| 84 | 84 | /** |
| 85 | 85 | * Dom is ready: check, apply filter and return |
| 86 | 86 | */ |
| 87 | 87 | |
| 88 | - $dom->save(); | |
| 89 | - $dom = (string) wplng_sdh_str_get_html( $dom ); | |
| 90 | - $dom = str_replace( '_wplingua_no_translate_', '', $dom ); | |
| 88 | + $html = $dom->save(); | |
| 91 | 89 | |
| 92 | - if ( empty( $dom ) ) { | |
| 93 | - return $html; | |
| 90 | + $html = str_replace( '_wplingua_no_translate_', '', $html ); | |
| 91 | + | |
| 92 | + if ( empty( $html ) ) { | |
| 93 | + return ''; | |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - return $dom; | |
| 96 | + return $html; | |
| 97 | 97 | } |