How in the data (html) attribute to save not only text, but also html tags?

Development | Web Development
For example, if there is a tag in the date - no problem. But it is necessary to add a class to the tag - everything is broken, I suspect that the problem is in quotes, but their screening does not help at all.

For example:
'<div class="main"></div>'

No attachments
When you think of downloading the content of a Web page URL, there is selenium for this. See my E2E tool.
on July 20th, 2020 (9:01 pm)
All coments
This job has not been commented yet.