gpt4 book ai didi

thymeleaf - 第 :block and th:remove ="tag" adding undesired spaces

转载 作者:行者123 更新时间:2023-12-04 21:37:47 28 4
gpt4 key购买 nike

我想生成纯文本(没有周围的标签),但由于某种原因,我得到了不想要的“白色”字符。如果我尝试

<th:span th:text="myText" th:remove="tag">Placeholder text</th:span>

或者
<th:block th:text="myText">Placeholder text</th:block>

我得到:
"
myText

"

我不确定这是否会影响我进行递归调用后的一行:
<div th:with="nodelist = ${node.children}" th:include="this::fragmentid" th:remove="tag"></div>

可能会发生什么?

提前致谢。

最佳答案

我认为你需要使用 thymeleaf-extras为了那个原因。

关于thymeleaf - 第 :block and th:remove ="tag" adding undesired spaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33926616/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com