« get me outta code hell

content: linkTemplate: strip <a> tags from content - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-20 22:06:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-20 22:07:50 -0300
commit93fd751aeb3a9c0b60889db0073e7907c87f90fe (patch)
treedbf9efedc019a0ce27d37eb40e92922efee2e3f7 /tap-snapshots
parent040e0d3a1d3890f7c45e2839ca949d353a160efc (diff)
content: linkTemplate: strip <a> tags from content
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test/snapshot/linkTemplate.js.test.cjs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs b/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs
index e9d22ba..45a9e61 100644
--- a/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs
+++ b/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs
@@ -13,6 +13,16 @@ exports[`test/snapshot/linkTemplate.js TAP linkTemplate (snapshot) > fill path s
 <a href="/c*lzone/myCoolPath/ham/pineapple/tomato/index.html">delish</a>
 `
 
+exports[`test/snapshot/linkTemplate.js TAP linkTemplate (snapshot) > link in content 1`] = `
+<a href="#the-more-ye-know">
+    Oh geez oh heck
+    There's a link in here!!
+    But here's <b>a normal tag.</b>
+    <div>Gotta keep them normal tags.</div>
+    <div>But not... NESTED LINKS, OOO.</div>
+</a>
+`
+
 exports[`test/snapshot/linkTemplate.js TAP linkTemplate (snapshot) > missing content 1`] = `
 <a href="banana">(Missing link content)</a>
 `