我想以json格式添加“a href”链接。 我得到了结果,
{"data": [[1,"HPP330","test330 hp","IN","Quiz 1",1,"Edit</a>"]]}
但我希望得到这样的结果:
<code>{"data": [[1,"HPP330","test330 hp","IN","Quiz 1",1,<a href ="">Edit</a>]]} </code>
答案 0 :(得分:0)
您需要使用htmlentities()
select id from loan where loan_status = 1 and exists(
select id from payment where
payment.loan_id = loan.id and payment.overdue_status = 't')