Это мой случай:
<th class="myClass" title="hello" world>myText</th>
И я хочу, чтобы он стал:
<th class="myClass" title="hello world">myText</th>
Вот как я заполнил заголовок:
@{string myTitle = Model.MyTitle;}
<th class="myClass" title=@myTitle>myText</th>
Model.MyTitle = "hello world".
Как я вижу, он разделяет несколько слов на несколько атрибутов. Зачем? :
<th class="myClass" title="hello" world="">myText</th>
Я использовал атрибут title для Powertip.