Error: Failed to set the 'innerHTML' property on 'Element'

Support
  • I am building a tool to scan news articles on various news websites and check if they contain keywords that I specify. However, I often encounter the following error message: [3240 - TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.] in the JavaScript task responsible for checking whether the article content contains the specified keywords. Could you please guide me on how to fix this error?

  • @ptt-bds
    Could you provide more details please. Which sites is the problem with and what action? Perhaps you could attach a test project so I can replicate your problem?