Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Alexandru Posted September 10, 2022 Posted September 10, 2022 (edited) Howdy, I want to remove the paragraph tag from forum descriptions, is there a way to do it? {{if $forum->description}} {template="richText" group="global" app="core" location="global" params="$forum->description, array('ipsDataItem_meta', 'ipsContained')"} {{endif}} I've tried with |escape:"html" but didn't seem to work Any solution please? Edited September 10, 2022 by drawncodes
Nathan Explosion Posted September 10, 2022 Posted September 10, 2022 Depending on the reason for doing this, there might be an easier solution. Can you elaborate on the reason?
Alexandru Posted September 10, 2022 Author Posted September 10, 2022 (edited) 3 minutes ago, Nathan Explosion said: Depending on the reason for doing this, there might be an easier solution. Can you elaborate on the reason? Well I'm trying to do something what includes the forum description, but I need the content from the description without html tags. The reason is not needed to my question actually and you know it 😛 Edited September 10, 2022 by drawncodes
Nathan Explosion Posted September 10, 2022 Posted September 10, 2022 1 minute ago, drawncodes said: The reason is not needed to my question actually and you know it Good luck to you in that case, as there is a reason and depending on the reason I would have offered the solution (there are 2 possibilities, you provided one)
Alexandru Posted September 10, 2022 Author Posted September 10, 2022 (edited) 3 minutes ago, Nathan Explosion said: Good luck to you in that case, as there is a reason and depending on the reason I would have offered the solution (there are 2 possibilities, you provided one) Well thank you. I don't understand why you got so angry about the fact that I didn't specify the reason. This is help & support area, I asked for help / advice. It's simple, you could've just replied with "Yes, you can use |escape:"html" but on the end of the line or something, not to ask for the reason.".... !!! The reason doesn't need to be specified. You have a lovely day. Edited September 10, 2022 by drawncodes
Nathan Explosion Posted September 10, 2022 Posted September 10, 2022 I'm not angry - I just find the response discourteous to someone offering you assistance, which is what I was doing. Someone from IPS will provide assistance instead, assuming they don't move this off elsewhere as it is customisation etc. In the meantime, if you want to remove the HTML (you only indicated P tag) then look at the truncate() function. Alexandru 1
Recommended Posts