想要进行一些测试,我该如何实现以下目标:
function(){console.log('console me')}
在文本包围的数据中,但我不希望数据以HTML格式显示,我希望它能够执行,而且只针对周围环境要在页面上显示的文字。
JSON数据
[{ "id": "1", "text": "I am testing console log from within json data function(){console.log('console this text')} so the text before this should not appear in html, rather it should run and all this other text should appear"}]