Files
doc.rustdesk.com/layouts/partials/utils/clean-structured-label.html
rustdesk 56cfd26e35 seo/geo
2026-03-20 18:42:55 +08:00

6 lines
294 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- $label := . | default "" -}}
{{- $label = $label | markdownify | plainify | htmlUnescape | replaceRE "\\s+" " " | chomp -}}
{{- $label = replaceRE `^[0-9]+(?:\s*[.,::、)-]\s*|\s+)` "" $label -}}
{{- $label = replaceRE `^[A-Za-z](?:\s*[.)]\s*|\s+)` "" $label -}}
{{- return $label -}}