I used the "[current-page:title]" to build a file upload path in a node.
I noticed that the token include the <em></em> tags from the Title. The created directory will named like <em>Edit Patent< .

Comments

Dave Reid’s picture

Status: Active » Closed (works as designed)

Correct, this is by design. Some titles do in fact have HTML tags. The module calling token_replace() would need to strip tags out of the tokens much like Pathauto does.

bofrost’s picture

I do not really understand your point. I noticed that with the standard theme bartik on standard node edit form....
So why is there a reason to let the html inside the token replace?

I mean for me it is okay... but it cost me hours to find the problem and maybe other users will have the same problem. It is every common usecase to upload a file.