stateRCDATA delimNone urlPartNone jsCtxRegexp attrNone elementTextarea

  • 2020-08-19
  • 浏览 (94)

golang 报错:

 html/template:blog/add.html: ends in a non-text context: {stateRCDATA delimNone 
 urlPartNone jsCtxRegexp attrNone elementTextarea <nil>}

检查是html里的一个没加结束,原代码:
<textarea type="text" name="description" id="description" class="layui-textarea">

加上后:
<textarea type="text" name="description" id="description" class="layui-textarea"></textarea>

正文到此结束