<?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: Paragraph Tag within Script?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/paragraph-tag-within-script</link>
		<description>Gravity Support Forums Topic: Paragraph Tag within Script?</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 05:05:33 +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/paragraph-tag-within-script" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Paragraph Tag within Script?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paragraph-tag-within-script#post-14063</link>
			<pubDate>Wed, 08 Dec 2010 12:26:18 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">14063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Seth The problem Gravity Forms was having with the themes using the NOFORMAT or RAW shortcode functionality was any Javascript we were outputting was having &#38;lt;P&#38;gt; tags added after each line, because it was being autoformatted like text is in the rich text editor.&#60;/p&#62;
&#60;p&#62;We solved this by making sure anytime we output Javascript we do so on a single line.  Downside is the JS isn't formatted nicely so it is easily human readable as it could be a long piece of JS and with it on one line it is hard to read without manually formatting it.&#60;/p&#62;
&#60;p&#62;Another solution that worked sometimes, although not always, was to have the user wrap our shortcode in the noformat/raw shortcode.  So it would look like this:&#60;/p&#62;
&#60;p&#62;[noformat] [gravityforms id=1] [/noformat]&#60;/p&#62;
&#60;p&#62;But this didn't always work.  It's frustrating that theme developers just use any code they find online without knowing the consequences. I know the exact article where this comes from (a CatsWhoCode.com tutorial) and I wish it was never written.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sethshoultes on "Paragraph Tag within Script?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paragraph-tag-within-script#post-14049</link>
			<pubDate>Wed, 08 Dec 2010 01:42:21 +0000</pubDate>
			<dc:creator>sethshoultes</dc:creator>
			<guid isPermaLink="false">14049@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;Theme developers really need to NOT include this code in their themes. It has negative consequences by fixing one things but in the process breaks another.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I totally agree! I am the developer of the Event Espresso plugin. I run into this problem CONSTANTLY. &#60;/p&#62;
&#60;p&#62;You are absolutely right about ThemeForest themes. They cause me constant grief. Most of these theme developers could care less, and state that they cannot support the thousands of plugins that are out there. &#60;/p&#62;
&#60;p&#62;Another thing. They are always including jquery.js in the theme header. Which always always overrides the jquery loaded by WordPress. These guys should not be developing themes if they cannot abide by a few simple guidelines implemented by WordPress.&#60;/p&#62;
&#60;p&#62;Any chance you can please share your work around for these issues? Man I could really use it. These theme developers are killing my productivity.&#60;/p&#62;
&#60;p&#62;Take care.&#60;/p&#62;
&#60;p&#62;Seth Shoultes&#60;br /&#62;
&#60;a href=&#34;http://eventespresso.com&#34; rel=&#34;nofollow&#34;&#62;Event Espresso&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Paragraph Tag within Script?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paragraph-tag-within-script#post-13837</link>
			<pubDate>Thu, 02 Dec 2010 18:53:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13837@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What version of Gravity Forms are you running?&#60;/p&#62;
&#60;p&#62;Something on your WordPress site is adding this, it's manipulating the shortcode output.  This usually occurs in themes that have implemented the NOFORMAT or RAW shortcode.  A lot of ThemeForest have implemented this functionality to allow you to wrap a shortcode around content you don't want to auto-format... the side effect is it changes how all other shortcodes are processed and ADDS auto-formatting to them... which is why the &#38;lt;p&#38;gt;'s are being added where line breaks exist.&#60;/p&#62;
&#60;p&#62;If you are running Gravity Forms v1.5 Beta try downloading the latest version from the Downloads page, I believe it may have a work around for this issue.&#60;/p&#62;
&#60;p&#62;If you are running an older version of Gravity Forms, let me know which version.&#60;/p&#62;
&#60;p&#62;Theme developers really need to NOT include this code in their themes.  It has negative consequences by fixing one things but in the process breaks another.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>UBC CMS on "Paragraph Tag within Script?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paragraph-tag-within-script#post-13836</link>
			<pubDate>Thu, 02 Dec 2010 18:49:11 +0000</pubDate>
			<dc:creator>UBC CMS</dc:creator>
			<guid isPermaLink="false">13836@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is a sample of my source code. Not sure why there's a &#38;lt;/p&#38;gt;&#38;lt;p&#38;gt; tag within the script&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;p&#38;gt;&#38;lt;script type=&#38;#39;text/javascript&#38;#39;&#38;gt;
jQuery(document).ready(function(){
gf_apply_rules(7, [2]);
jQuery(&#38;#39;#gform_wrapper_7&#38;#39;).show();&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt; //preventing &#38;#39;Enter&#38;#39; key from submitting the form when submit button is hidden
jQuery(&#38;#39;#gform_7&#38;#39;).submit(
function(){
return jQuery(&#38;#39;#gform_submit_button_7&#38;#39;).is(&#38;#39;:visible&#38;#39;);
}
);
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
