luci-base: form.js: decode HTML entities in AbstractElement.stripTags()
authorMikael Magnusson <mikma@users.sourceforge.net>
Tue, 20 Aug 2024 20:17:36 +0000 (22:17 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 18 Sep 2024 21:26:48 +0000 (23:26 +0200)
commit470bb2b8540e5b4949c66b04e5f583c5c36a5a7b
tree29fb6c5bddee2e64e0604ce93e4d417b2439d85a
parentdfb86709c6469fe32cb9dbd0b5b0f184562186cf
luci-base: form.js: decode HTML entities in AbstractElement.stripTags()

This commit fixes a problem with HTML entities which were visible in their
encoded form in the mobile view. This happened for example when displaying
a GridSection with a Value option containing "&nbsp;" in the title.
Without this change only HTML entities in titles that also contains tags
are decoded before they are stored in data-title attributes.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
modules/luci-base/htdocs/luci-static/resources/form.js