I created an email watcher witch html-body. Some of the logs I am returning with ctx.payload.hits.hits have html tags in their value:
Is there a way to escape the return so the tags in the value are displayed as tags in the mail?
logValue: "someDetailAboutHTML *"
Thanks vor helping.
Hi, if you are using the "email action" you should check out the documented attributes:
body : The body of the email. When this field holds a string, it will default to the text body of the email. Set as an object to specify either the text or the html body or both (using the fields below
body.text : The plain text body of the email. The body can be static text or contain Mustache templates.
body.html : The html body of the email. The body can be static text or contain Mustache templates. This body will be sanitized to remove dangerous content such as scripts. This behavior can be disabled by setting xpack.notification.email.html.sanitization.enabled: false in elasticsearch.yaml .
If you are using body, you can try using body.text
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.