<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Preserving newlines in a field populated pre-submission.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/preserving-newlines-in-a-field-populated-pre-submission</link>
		<description>Gravity Support Forums Topic: Preserving newlines in a field populated pre-submission.</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:25:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/preserving-newlines-in-a-field-populated-pre-submission" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Preserving newlines in a field populated pre-submission."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/preserving-newlines-in-a-field-populated-pre-submission#post-243064</link>
			<pubDate>Wed, 08 May 2013 16:41:50 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">243064@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So you've figured this out? Let us know. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcarnevale on "Preserving newlines in a field populated pre-submission."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/preserving-newlines-in-a-field-populated-pre-submission#post-242862</link>
			<pubDate>Wed, 08 May 2013 12:58:30 +0000</pubDate>
			<dc:creator>mcarnevale</dc:creator>
			<guid isPermaLink="false">242862@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey guys, &#60;/p&#62;
&#60;p&#62;I have a form field (hidden) that is being populated with the formatted contents of a cookie using the gform_pre_submission_filter.&#60;/p&#62;
&#60;p&#62;It has a collection of items, each with a subset of configurations. The issue I'm having is that I can't figure out how to keep any sort of line breaks in the data.&#60;/p&#62;
&#60;p&#62;I've tried html, it's stripped out. I've tried \n - the backslash is pulled and there's just n's listed in the data.&#60;/p&#62;
&#60;p&#62;Is there any way to either : insert HTML or newline characters that are preserved in the entries / emails? I assume that it's a security issue blocking these, but since it's being completely build in PHP on the back end, can I at least disable the stripslashes / remove html that's being triggered on this field?&#60;/p&#62;
&#60;p&#62;EDIT: I've solved this myself, due to a bit of forgotten php weirdness.&#60;/p&#62;
&#60;p&#62;'\n' is not &#34;\n&#34;, as single quotes don't parse contents. Using doubles worked fine.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
