aboutsummaryrefslogtreecommitdiff
path: root/lib/html.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html.php')
-rw-r--r--lib/html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html.php b/lib/html.php
index 49c77f04..13db97a4 100644
--- a/lib/html.php
+++ b/lib/html.php
@@ -36,7 +36,7 @@ function sanitize($html,
if(in_array($element->tag, $text_to_keep)) {
$element->outertext = $element->plaintext;
} elseif(in_array($element->tag, $tags_to_remove)) {
- $element->remove();
+ $element->outertext = '';
} else {
foreach($element->getAllAttributes() as $attributeName => $attribute) {
if(!in_array($attributeName, $attributes_to_keep))
T 1-1/+1 2023-08-09fix(emoji picker): fix copy button (#556)Gravatar Corentin THOMASSET 1-1/+1 2023-08-08chore(deps): update dependency @vitejs/plugin-vue-jsx to v3 (#497)Gravatar renovate[bot] 2-334/+42 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-08-08chore(deps): update dependency @vitejs/plugin-vue to v4 (#496)Gravatar renovate[bot] 2-7/+7 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-08-08feat(new tool): emoji picker (#551)Gravatar Corentin THOMASSET 11-6/+192 2023-08-07feat(ui): added c-select in the ui lib (#550)Gravatar Corentin THOMASSET 29-199/+666 * feat(ui): added c-select in the ui lib * refactor(ui): switched n-select to c-select 2023-07-05chore(deps): update dependency vite-plugin-pwa to ^0.16.0 (#488)Gravatar renovate[bot] 2-90/+84 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-29chore(deps): update dependency vite to v4 (#503)Gravatar renovate[bot] 2-272/+25 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-29chore(ci): e2e against vercel deployement (#518)Gravatar Corentin THOMASSET 2-42/+21 2023-06-29fix(deps): update dependency @vueuse/head to v1 (#515)Gravatar renovate[bot] 2-27/+77 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-29chore(e2e): execute e2e against built app (#511)Gravatar Corentin THOMASSET 4-7/+29 2023-06-29chore(deps): update github/codeql-action action to v2 (#513)Gravatar renovate[bot] 1-3/+3 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-28chore(deps): update node.js to v18 (#514)Gravatar renovate[bot] 3-27/+32 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-27chore(deps): switched from vite-plugin-md to vite-plugin-vue-markdown (#510)Gravatar Corentin THOMASSET 3-86/+42 2023-06-27chore(deps): update dependency workbox-window to v7 (#509)Gravatar renovate[bot] 2-16/+16 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-27chore(deps): update dependency vite-svg-loader to v4 (#508)Gravatar renovate[bot] 2-64/+34 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-27chore(deps): update dependency typescript to ~4.9.0 (#481)Gravatar renovate[bot] 2-79/+81 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-27chore(deps): update dependency vue-tsc to ^0.40.0 (#490)Gravatar renovate[bot] 3-395/+72 * chore(deps): update dependency vue-tsc to ^0.40.0 * chore(deps): upgraded vue-tsc dependency --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-06-27refactor(navbar): consistent spacing in navbar buttons (#507)Gravatar Corentin THOMASSET 1-21/+5 2023-06-25refactor(ui): remove n-text (#506)Gravatar Corentin THOMASSET 14-74/+52 2023-06-25refactor(ui): replaced some n-input to c-input (#505)Gravatar Corentin THOMASSET 20-235/+189 2023-06-25chore(deps): updated unplugin-auto-import (#504)Gravatar Corentin THOMASSET 4-57/+330 2023-06-25chore(deps): removed start-server-and-test dependencyGravatar renovate[bot] 3-116/+2 * chore(deps): update dependency start-server-and-test to v2 * chore(deps): removed start-server-and-test dependency --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-06-25feat(new-tool): password strength analyzer (#502)Gravatar Corentin THOMASSET 7-1/+223 2023-06-25chore(deps): update dependency c8 to v8 (#498)Gravatar renovate[bot] 2-6/+10 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24chore(deps): update dependency @types/jsdom to v21 (#495)Gravatar renovate[bot] 2-10/+12 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24chore(deps): update node.js to v16.20.1 (#491)Gravatar renovate[bot] 1-1/+1 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24fix(deps): update dependency country-code-lookup to ^0.1.0 (#493)Gravatar renovate[bot] 2-5/+5 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24fix(deps): update dependency @vueuse/head to ^0.9.0 (#492)Gravatar renovate[bot] 2-11/+20 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24chore(deps): update dependency vitest to ^0.32.0 (#489)Gravatar renovate[bot] 2-36/+502 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-24chore(deps): update actions/checkout action to v3 (#494)Gravatar renovate[bot] 2-2/+2 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-23chore(deps): update dependency unplugin-vue-components to ^0.25.0 (#484)Gravatar renovate[bot] 2-8/+12 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-23chore(deps): update dependency unplugin-auto-import to ^0.16.0 (#483)Gravatar renovate[bot] 2-15/+23 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-23fix(i18n): fallback for demo i18nGravatar Corentin Thomasset 1-1/+1 2023-06-23feat(new-tool): yaml to tomlGravatar Corentin Thomasset 5-3/+83 2023-06-23feat(new-tool): json to tomlGravatar Corentin Thomasset 5-0/+83 2023-06-23feat(new-tool): toml to yamlGravatar Corentin Thomasset 4-0/+77 2023-06-23feat(new-tool): toml to jsonGravatar Corentin Thomasset 8-1/+114 2023-06-23refactor(json-viewer): input monospace font (#485)Gravatar Marvin 1-2/+3 2023-06-23chore(deps): update dependency unocss to ^0.53.0 (#482)Gravatar renovate[bot] 2-122/+123 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-23chore(deps): update dependency @unocss/eslint-config to ^0.53.0 (#478)Gravatar renovate[bot] 2-30/+94 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2023-06-23refacor(transformers): use monospace font for JSON and SQL text areas (#476)Gravatar Marvin 4-3/+15 * feat(c-input): Add monospace prop * feat: use monospace input for json and sql inputs