Problem/Motivation
When using the name format parser in a custom module, it's useful to be able to get the raw generated name. Right now, the parser only allows to return HTML escaped text.
This is an issue when you want to set the node title to the generated name, because then the name gets double escaped, as also said in #2672558-8: Optional full name applied to title of nodes containing name field.
Consider a name with the following in it (a Dutch surname prefix):
van 't
When displayed, this becomes:
van 't
Proposed resolution
Add a new markup option called 'raw' to the name format parser and let that return the raw formatted name.
Remaining tasks
- Review.
- Commit.
User interface changes
A new markup option called 'raw' becomes available.
API changes
None.
Data model changes
None.
Patch (with a test) will follow.
Comment | File | Size | Author |
---|---|---|---|
#5 | 3143823-5.patch | 1.59 KB | ankithashetty |
| |||
#2 | name-raw-markup-3143823-2.patch | 1.53 KB | MegaChriz |
| |||
#2 | name-raw-markup-3143823-2-tests-only.patch | 812 bytes | MegaChriz |
Comments
Comment #2
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedThis adds a markup option called "raw". The tests-only patch should fail.
Comment #4
nkoporecThis needs rebase, otherwise good to go, really cool that you provided a patch with tests, thanks!
Comment #5
ankithashettyRe-rolled the patch in #2 as suggested by @nkoporec in #4... Hope this helps in moving the issue forward, Thanks!
Comment #7
nkoporeccomitted, thanks !