MVC2 Quote handling / escaping within a style attribute

I have no idea how to handle this code within a style attribute. How do I correctly code this markup or properly escape it? I could use a string.format and emit the entire div but that seems like an awkward solution.

(I figured all those slant brackets would pose an issue in this posting so I am including an image.)

alt text

1
задан andleer 25 August 2010 в 02:33
поделиться

1 ответ

Я тоже все время вижу это в моем редакторе, по какой-то причине он не окрашивает атрибуты должным образом иногда в CSS и JS. Однако атрибут, который вы выплевываете, по-прежнему должен работать так, как вы ожидаете.

2
ответ дан 2 September 2019 в 21:53
поделиться
Другие вопросы по тегам:

Похожие вопросы: