How to render a self closing tag using TagBuilder?

后端 未结 0 944
我寻月下人不归
我寻月下人不归 2021-02-11 18:02

The following code:

var canonical = new TagBuilder(\"link\");
canonical.MergeAttribute(\"rel\", \"canonical\");
canonical.MergeAttribute(\"href\", url);
return n         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题