GetSimple Support Forum
<p></p> after preg_replace in plugins - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: <p></p> after preg_replace in plugins (/showthread.php?tid=1530)



<p></p> after preg_replace in plugins - dani - 2011-04-07

Hi at all,
today i stumbled over this tags in my html code "<p></p>" and i don't know where they're from. The only reason i found is the preg_replace in plugins like "p01-contact" or "Search plugin (I18N)" and even my own plugin.
So i come to the conclusion that the cause have to be in the GetSimple core.

I would be thankful if you have a solution.

Cheers Dani


<p></p> after preg_replace in plugins - Connie - 2011-04-07

Dani,

please give better information:

which version are you using?
URL of the page where you find this empty paragraph

otherwise this info is only 50 % ;=)


<p></p> after preg_replace in plugins - dani - 2011-04-07

Sorry,
ok i am using GS 3.0 or GS 2.31 doesn't matter, here in GS 2.31: http://verlagsvertretung.martins-buchladen.de/kontakt/ i used the contact form.
On http://xxl-objekt.de/xxl-objekt.de/kontakt/ GS 3.0 also after the <form> tag.
Then i saw it on http://mvlcek.bplaced.net/search (not my page) after the </form> i think its the same issue (Search I18N Plugin).

And on an other project, with my own plugin but i am using the same technique like in the p01-contact form to replace the placeholder (% testest %)

I hope that's enough, thanks for support.


<p></p> after preg_replace in plugins - RobA - 2011-04-07

The WYSIWYG editor wraps each paragraph of text in the paragraph (<p></p>) tag.

-Rob A>


<p></p> after preg_replace in plugins - Connie - 2011-04-07

it is possible to set editoroptions not to use <p> around each text (and empty lines)

so do a forum search here, you can define that in the GSEDITOROPTIONS in gsconfig.php

Cheers, Connie


<p></p> after preg_replace in plugins - mvlcek - 2011-04-07

The I18N Search plugin removes the surrounding paragraph from the resulting page, if there is no other text within.