<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Disable preg_replace &#60;br /&#62;</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Disable preg_replace &#60;br /&#62;</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 02:27:21 +0000</pubDate>

<item>
<title>yuniar on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11710</link>
<pubDate>Mon, 28 Mar 2011 19:09:34 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11710@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes, that is correct.
&#60;/p&#62;</description>
</item>
<item>
<title>Willy on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11702</link>
<pubDate>Sat, 26 Mar 2011 22:38:10 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">11702@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;&#60;code&#62;$element[$j]-&#38;gt;guidelines = $row[&#38;#39;element_guidelines&#38;#39;];&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Willy on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11701</link>
<pubDate>Sat, 26 Mar 2011 21:20:10 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">11701@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you,&#60;/p&#62;
&#60;p&#62;That fixed the issue. I discovered another instance of &#60;code&#62;$element[$j]-&#38;gt;guidelines 	= $row[&#38;#39;element_guidelines&#38;#39;];&#60;/code&#62; around line 1324. I changed that one too.&#60;/p&#62;
&#60;p&#62;Is that correct?&#60;/p&#62;
&#60;p&#62;Greetings.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11699</link>
<pubDate>Sat, 26 Mar 2011 19:28:05 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11699@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ah... yes, you are righ. The guidelines doesn't seem to translate the new lines into break. Only the field labels does.&#60;/p&#62;
&#60;p&#62;The fix is very simple, edit your includes/view-functions.php file, search around line 1656 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element[$j]-&#38;gt;guidelines 	= $row[&#38;#39;element_guidelines&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change it to become:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element[$j]-&#38;gt;guidelines 	= nl2br($row[&#38;#39;element_guidelines&#38;#39;]);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that will translate the new lines into breaks.
&#60;/p&#62;</description>
</item>
<item>
<title>Willy on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11685</link>
<pubDate>Fri, 25 Mar 2011 14:39:06 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">11685@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar,&#60;/p&#62;
&#60;p&#62;I am using 2.3.&#60;/p&#62;
&#60;p&#62;Maybe I should have been more specific. I am talking about the &#34;Guidelines for user&#34; field.&#60;/p&#62;
&#60;p&#62;I introduce a long description containing html. I just tried your suggestion but no &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62; is placed where I made a linebreak using enter key. I checked this viewing the source code.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11682</link>
<pubDate>Fri, 25 Mar 2011 13:26:20 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11682@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Willy,&#60;/p&#62;
&#60;p&#62;What version of MachForm are you currently using?&#60;br /&#62;
I suggest to update your machform to the latest version (v2.3), so that you won't need to manually write &#60;br /&#62; tag. New lines should be translated automatically to &#60;/p&#62;
&#60;p&#62;You can download it from customer area.
&#60;/p&#62;</description>
</item>
<item>
<title>Willy on "Disable preg_replace &#60;br /&#62;"</title>
<link>https://www.machform.com/forums/topic/disable-preg_replace-ltbr-gt#post-11675</link>
<pubDate>Fri, 25 Mar 2011 05:27:15 +0000</pubDate>
<dc:creator>Willy</dc:creator>
<guid isPermaLink="false">11675@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;In one of my field descriptions I have a &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62; that gets removed every time I edit and save the form.&#60;br /&#62;
This forces me to rewrite that &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62; every time I edit the form before saving it.&#60;/p&#62;
&#60;p&#62;Can you please explain me where this what I suppose is a preg_replace is done and/or how to disable it?&#60;/p&#62;
&#60;p&#62;Greetings.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
