正则表达式(&;8206;)JavaScript中从左到右的标记

正则表达式(&;8206;)JavaScript中从左到右的标记,javascript,html,regex,special-characters,Javascript,Html,Regex,Special Characters,我有这个html(希伯来语文本): 我想通过将(‎)替换为空格来删除它 我尝试使用regex,比如: $('result').html($('test').html().replace(/‎/,''); $('#result2').html($('#test2').html().replace(/)/,'') 与lrm;ניסיון ניסיון ניסיון 复印件和复印件;ניסיון ניסיון ניסיון 检索HTML时,显然LTR标记没有被转换为字符实体,

我有这个html(希伯来语文本):

我想通过将(
‎
)替换为空格来删除它

我尝试使用regex,比如:

$('result').html($('test').html().replace(/‎/,'');
$('#result2').html($('#test2').html().replace(/)/,'')

与lrm;ניסיון ניסיון ניסיון

复印件和复印件;ניסיון ניסיון ניסיון


检索HTML时,显然LTR标记没有被转换为字符实体,它只是Unicode字符

因此,为了让浏览器成为实体,而不是实体,可以在
<r
\u200E

var html=$('#test').html();
var rep=html.replace(/&lrm;|\u200E/gi',);
$('#result').html(rep)

与lrm;ניסיון ניסיון ניסיון


关于如何提问的好例子(也是一个有趣的例子)尝试
$('result').html($('test').html().replace(/\u200E/,'')
בדיקה בדיקה בדיקה&lrm;ניסיון ניסיון ניסיון