Allow the link text in the block to submit a claim contain HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| allow_html_block_link_text-2642996-1.patch | 575 bytes | monstrfolk |
Allow the link text in the block to submit a claim contain HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| allow_html_block_link_text-2642996-1.patch | 575 bytes | monstrfolk |
Comments
Comment #2
nikunjkotecha@monstrfolk
I am thinking of implementing some alter hooks to tackle such cases, it won't be good to allow HTML directly but it is OK if developer wants to allow it and not something that admin does directly.
Does that make sense?
Thanks,
Nikunj
Comment #3
monstrfolk commentedI understand, but does that really matter since the admin is a trusted user?
Comment #4
nikunjkotechaNot really, for some scenarios it might be available to semi-admins, content managers or other non-technical admins. Idea is to avoid styles being broken. If it is required for the project, developer can alter it and allow html and add required conditions, styles to handle the html.
Comment #5
monstrfolk commentedit makes using features such as font awesome icons very hard to use by disallowing HTML.
Comment #6
nikunjkotechaI got your point. Give me time till tomorrow, I'll implement what I'm thinking and will share here for your review.
Comment #7
monstrfolk commentedAwesome. Thanks for going through all of the patches. I really like this module.
Comment #8
nikunjkotecha@monsterfolk
Please review the below diff
With this you can check for a field in the entity and add class based on a category or something, or if you want html directly, just add that in the link_options. Let me know if this makes sense.
Comment #10
nikunjkotechaComment #11
monstrfolk commentedworks