Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Dave ReidCorrect, 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.
Comment #2
bofrost CreditAttribution: bofrost commentedI 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.