My product description and short descriptions all have new line characters in the database...
I would like magento 2 to convert those new lines to <br> tags using nl2br on the front end.
I'm using ultimo theme.
I see where magento does
Hi @ElliotGage,
That should be happen. The Luma theme use a Catalog Helper. You can check here the helper function: https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/Helper/Output.php#L138
Helper is used here: https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/view/frontend/template...
Strange.. .not seeing those files that in my source. I think perhaps there's a difference between git source files and the final files encapulated in the install zip download for mage 2.2.3
When I switch to luma it doesn't use nl2br... I can't find any reference to it anywhere.
I see that the helper file checks for two states...
(!$attribute->getIsHtmlAllowedOnFront() && !$attribute->getIsWysiwygEnabled())
Problem is magento 2.2.3 admin-->store-->product attribute -->storefront_properties...
Doesn't have an option for affecting ishtmlallowedonfront... but it does have option for iswysiwygenabled.
How do I set the attribute's ishtmlallowedonfront value in magento's admin?