Skip to content

My code is executing but the html tags get lost #348

Answered by welpdx
radha1990kumari asked this question in Help
Discussion options

You must be logged in to vote

That is because tR is the output of the script.
When you directly assign an to tR, the resulting output is only an and nothing else. It seemed like you lost your html tags, but what actually happened is you basically told the script to output only an when you did tR=an. You would lose any text before and after any script if you used tR=an anywhere in a Templater script.

So, what you want to do is instead is to replace the line tR=an with tR+=an . This way an is inserted between the text you added before and after.

Hope that helps,
Welp

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@radha1990kumari
Comment options

@welpdx
Comment options

Answer selected by radha1990kumari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants