mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[GH-ISSUE #7] Problem displaying tag in <li> if tag starts with < #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nobodynuf on GitHub (Oct 14, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/7
Originally assigned to: @DominikDoom on GitHub.
Hello,
I was making a custom tags file, and added my embeddings (textual_inversion) as tags in the form "<name_embedded>" to enable autocompletion and stuff.
After editing my target csv file I noticed that the autocomplete function filters correctly but does not show the element in the list (the tag <name_embedded> appeared like '' )
I resolved the issue escaping the < and the > symbols with the html equivalent.
The line I edited
github.com/DominikDoom/a1111-sd-webui-tagcomplete@fbfc988fe5/tagAutocomplete.js (L272)was replaced with
li.innerHTML = result[0].replace('<','<').replace('>','>');and the issue is solved.
I mean, I know that the custom script is based on danbooru tags but maybe the scripts need html escaping to avoid those types of issues.
@DominikDoom commented on GitHub (Oct 14, 2022):
Good point, I totally didn't think about HTML entities in tags. Will fix later.
@DominikDoom commented on GitHub (Oct 14, 2022):
Should be solved now! Let me know if it still behaves unexpected for you.