WP Better Emails - Version 0.1.2

Version Description

  • Added 3.1 compatibility
    • Dutch translation
Download this release

Release Info

Developer nlemoine
Plugin Icon 128x128 WP Better Emails
Version 0.1.2
Comparing to
See all releases

Code changes from version 0.1.1 to 0.1.2

js/jquery.cookie.js CHANGED
@@ -7,7 +7,7 @@
7
  * http://www.gnu.org/licenses/gpl.html
8
  *
9
  */
10
-
11
  /**
12
  * Create a cookie with the given name and value and other optional parameters.
13
  *
7
  * http://www.gnu.org/licenses/gpl.html
8
  *
9
  */
10
+
11
  /**
12
  * Create a cookie with the given name and value and other optional parameters.
13
  *
js/wpbe-admin-script.js CHANGED
@@ -24,5 +24,4 @@ jQuery(document).ready(function(){
24
  });
25
  e.preventDefault();
26
  });
27
-
28
  });
24
  });
25
  e.preventDefault();
26
  });
 
27
  });
langs/wp-better-emails-nl_NL.mo ADDED
Binary file
langs/wp-better-emails-nl_NL.po ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: WP Better Emails\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-better-emails\n"
10
+ "POT-Creation-Date: 2010-11-29 15:16+0000\n"
11
+ "PO-Revision-Date: 2011-01-07 22:39+0100\n"
12
+ "Last-Translator: Glenn Mulleners <info@wp-expert.nl>\n"
13
+ "Language-Team: Glenn Mulleners <info@wp-expert.nl>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Dutch\n"
18
+ "X-Poedit-Country: NETHERLANDS\n"
19
+
20
+ #: email_template.php:33
21
+ msgid "Powered by Wordpress"
22
+ msgstr "Powered by WordPress"
23
+
24
+ #: email_template.php:34
25
+ msgid "Date"
26
+ msgstr "Datum"
27
+
28
+ #: email_template.php:34
29
+ msgid "Email sent the"
30
+ msgstr "E-mail verstuurd"
31
+
32
+ #: email_template.php:35
33
+ msgid "Contact"
34
+ msgstr "Contact"
35
+
36
+ #: email_template.php:35
37
+ msgid "For any request, please contact"
38
+ msgstr "Voor eventuele vragen kun je contact opnemen met"
39
+
40
+ #: wpbe-options.php:2
41
+ msgid "Email options"
42
+ msgstr "E-mail opties"
43
+
44
+ #: wpbe-options.php:9
45
+ msgid "Sender options"
46
+ msgstr "Afzender opties"
47
+
48
+ #: wpbe-options.php:10
49
+ msgid "Template options"
50
+ msgstr "Sjabloon opties"
51
+
52
+ #: wpbe-options.php:11
53
+ msgid "Help & support"
54
+ msgstr "Hulp & ondersteuning"
55
+
56
+ #: wpbe-options.php:14
57
+ msgid "Change the Wordpress default behavior when sending emails to users (i.e. comment notifications, lost password, etc.), set your own sender name and email address."
58
+ msgstr "Wijzig het standaard gedrag van WordPress bij het verzenden van e-mails naar gebruikers (bijv. reactie notificaties, wachtwoord kwijt, etc), stel je eigen naam en e-mailadres in als afzender."
59
+
60
+ #: wpbe-options.php:17
61
+ msgid "From name"
62
+ msgstr "Afzender"
63
+
64
+ #: wpbe-options.php:17
65
+ #: wpbe-options.php:21
66
+ msgid "required"
67
+ msgstr "verplicht"
68
+
69
+ #: wpbe-options.php:21
70
+ msgid "From email address"
71
+ msgstr "Afzender e-mailadres"
72
+
73
+ #: wpbe-options.php:29
74
+ msgid "Template variables"
75
+ msgstr "Sjabloon variabelen"
76
+
77
+ #: wpbe-options.php:31
78
+ msgid "Some dynamic tags can be included in your email template :"
79
+ msgstr "Sommige dynamische tags kunnen worden opgenomen in je e-mail sjabloon:"
80
+
81
+ #: wpbe-options.php:33
82
+ msgid "<strong>%content%</strong> : will be replaced by the message content."
83
+ msgstr "<strong>%content%</strong> : zal worden vervangen door het bericht."
84
+
85
+ #: wpbe-options.php:34
86
+ msgid "NOTE: The content tag is <strong>required</strong>, WP Better Emails will be automatically desactivated if no content tag is found."
87
+ msgstr "LET OP: De inhoud tag is <strong>verplicht</strong>, WP Better Emails zal automatisch worden gedeactiveerd als de inhoud tag niet is gevonden."
88
+
89
+ #: wpbe-options.php:35
90
+ msgid "<strong>%blog_url%</strong> : will be replaced by your blog URL."
91
+ msgstr "<strong>%blog_url%</strong> : zal worden vervangen door de site URL."
92
+
93
+ #: wpbe-options.php:36
94
+ msgid "<strong>%blog_name%</strong> : will be replaced by your blog name."
95
+ msgstr "<strong>%blog_name%</strong> : zal worden vervangen door je site naam."
96
+
97
+ #: wpbe-options.php:37
98
+ msgid "<strong>%blog_description%</strong> : will be replaced by your blog description."
99
+ msgstr "<strong>%blog_description%</strong> : zal worden vervangen door je site beschrijving."
100
+
101
+ #: wpbe-options.php:38
102
+ msgid "<strong>%admin_email%</strong> : will be replaced by admin email."
103
+ msgstr "<strong>%admin_email%</strong> : zal worden vervangen door het e-mailadres van de beheerder."
104
+
105
+ #: wpbe-options.php:39
106
+ msgid "<strong>%date%</strong> : will be replaced by current date, as formatted in <a href=\"options-general.php\">general options</a>."
107
+ msgstr "<strong>%date%</strong> : zal worden vervangen door de huidige datum, zoals opgegeven in de <a href=\"options-general.php\">algemene instellingen</a>."
108
+
109
+ #: wpbe-options.php:40
110
+ msgid "<strong>%time%</strong> : will be replaced by current time, as formatted in <a href=\"options-general.php\">general options</a>."
111
+ msgstr "<strong>%date%</strong> : zal worden vervangen door de huidige tijd, zoals opgegeven in de <a href=\"options-general.php\">algemene instellingen</a>."
112
+
113
+ #: wpbe-options.php:46
114
+ msgid "HTML Template"
115
+ msgstr "HTML Sjabloon"
116
+
117
+ #: wpbe-options.php:51
118
+ msgid "Send an email preview to"
119
+ msgstr "Stuur e-mail voorbeeld naar"
120
+
121
+ #: wpbe-options.php:54
122
+ msgid "Send"
123
+ msgstr "Verstuur"
124
+
125
+ #: wpbe-options.php:56
126
+ msgid "You must save your template before sending an email preview."
127
+ msgstr "Je sjabloon moet worden opgeslagen voor het versturen van een e-mail voorbeeld."
128
+
129
+ #: wpbe-options.php:64
130
+ msgid "Designing & coding email templates"
131
+ msgstr "Ontwerpen en coderen van e-mail sjablonen"
132
+
133
+ #: wpbe-options.php:65
134
+ msgid "Here are a few ressources about email formatting :"
135
+ msgstr "Hier zijn een paar bronnen over e-mail opmaak:"
136
+
137
+ #: wpbe-options.php:67
138
+ msgid "<a href=\"http://www.campaignmonitor.com/resources/\" target=\"_blank\">http://www.campaignmonitor.com/resources/</a>"
139
+ msgstr "<a href=\"http://www.campaignmonitor.com/resources/\" target=\"_blank\">http://www.campaignmonitor.com/resources/</a>"
140
+
141
+ #: wpbe-options.php:68
142
+ msgid "<a href=\"http://articles.sitepoint.com/article/code-html-email-newsletters/\" target=\"_blank\">http://articles.sitepoint.com/article/code-html-email-newsletters/</a>"
143
+ msgstr "<a href=\"http://articles.sitepoint.com/article/code-html-email-newsletters/\" target=\"_blank\">http://articles.sitepoint.com/article/code-html-email-newsletters/</a>"
144
+
145
+ #: wpbe-options.php:70
146
+ msgid "Converting HTML templates"
147
+ msgstr "HTML sjabloon omzetten"
148
+
149
+ #: wpbe-options.php:71
150
+ msgid "Coding HTML for emails requires CSS styles to be inline. Here's a tool powered by MailChimp that will convert your styles placed in the <code>&lt;head&gt;</code> tag to inline : "
151
+ msgstr "Het coderen van HTML e-mails vereist inline CSS stijlen. Hier is een tool van MailChimp die je stijlen in de <code>&lt;head&gt;</code> tag naar inline stijlen omzet:"
152
+
153
+ #: wpbe-options.php:73
154
+ msgid "<a href=\"http://www.mailchimp.com/labs/inlinecss.php\" target=\"_blank\">http://www.mailchimp.com/labs/inlinecss.php</a>"
155
+ msgstr "<a href=\"http://www.mailchimp.com/labs/inlinecss.php\" target=\"_blank\">http://www.mailchimp.com/labs/inlinecss.php</a>"
156
+
157
+ #: wpbe-options.php:75
158
+ msgid "Requests & Bug report"
159
+ msgstr "Verzoeken & foutmeldingen"
160
+
161
+ #: wpbe-options.php:76
162
+ msgid "If you have any idea to improve this plugin or any bug to report, please email me at : <a href=\"mailto:plugins@artyshow-studio.fr?subject=[wp-better-emails]\">plugins@artyshow-studio.fr</a>"
163
+ msgstr "Als je een idee hebt om deze plugin te verbeteren of als je een fout wilt melden, stuur me een e-mail: <a href=\"mailto:plugins@artyshow-studio.fr?subject=[wp-better-emails]\">plugins@artyshow-studio.fr</a>"
164
+
165
+ #: wpbe-options.php:77
166
+ msgid "Credits"
167
+ msgstr "Dank aan"
168
+
169
+ #: wpbe-options.php:79
170
+ msgid "MarkItUp! : jQuery HTML editor <a href=\"http://markitup.jaysalvat.com/home/\" target=\"_blank\">http://markitup.jaysalvat.com/home/</a>"
171
+ msgstr "MarkItUp! : jQuery HTML editor <a href=\"http://markitup.jaysalvat.com/home/\" target=\"_blank\">http://markitup.jaysalvat.com/home/</a>"
172
+
173
+ #: wpbe-options.php:84
174
+ msgid "Save Changes"
175
+ msgstr "Wijzigingen opslaan"
176
+
177
+ #: wpbe.php:47
178
+ msgid "Settings"
179
+ msgstr "Instellingen"
180
+
181
+ #: wpbe.php:64
182
+ msgid "WP Better Emails requires WordPress 2.8 or newer."
183
+ msgstr "WP Better Emails vereist WordPress 2.8 of hoger."
184
+
185
+ #: wpbe.php:149
186
+ msgid "Please enter a sender email address."
187
+ msgstr "Vul een afzender e-mailadres in."
188
+
189
+ #: wpbe.php:152
190
+ msgid "Please enter a valid sender email address."
191
+ msgstr "Vul een geldig afzender e-mailadres in."
192
+
193
+ #: wpbe.php:162
194
+ msgid "Template is empty"
195
+ msgstr "Sjabloon ontbreekt."
196
+
197
+ #: wpbe.php:165
198
+ msgid "No content tag found. Please insert the %content% tag in your template"
199
+ msgstr "Geen inhoud tag gevonden. Plaats de %content% tag in je sjabloon"
200
+
201
+ #: wpbe.php:181
202
+ msgid "Please enter an email"
203
+ msgstr "Vul een e-mailadres in"
204
+
205
+ #: wpbe.php:183
206
+ msgid "Please enter a valid email"
207
+ msgstr "Vul een geldig e-mailadres in"
208
+
209
+ #: wpbe.php:184
210
+ msgid "Hey !"
211
+ msgstr "Hey!"
212
+
213
+ #: wpbe.php:186
214
+ msgid "This is a sample email to test your template."
215
+ msgstr "Dit is een voorbeeld e-mail om je sjabloon te testen."
216
+
217
+ #: wpbe.php:188
218
+ msgid "If you're not skilled in HTML/CSS email coding, I strongly recommend to leave the default template as it is. It has been tested on various and popular email clients like Gmail, Yahoo Mail, Hotmail/Live, Thunderbird, Apple Mail, Outlook, and many more. "
219
+ msgstr "Als je niet goed bent in HTML/CSS raad ik je sterk aan om het standaard sjabloon te laten zoals hij is. Het is getest op verschillende en populaire e-mailclients, zoals Gmail, Yahoo Mail, Hotmail / Live, Thunderbird, Apple Mail, Outlook, en nog veel meer."
220
+
221
+ #: wpbe.php:190
222
+ msgid "If you have any problem or any suggestions to improve this plugin, please let me know."
223
+ msgstr "Als je problemen tegenkomt of suggesties hebt om deze plugin te verbeteren, laat het me weten."
224
+
225
+ #: wpbe.php:192
226
+ msgid "Email template preview"
227
+ msgstr "E-mail sjabloon vooraf bekijken"
228
+
229
+ #: wpbe.php:193
230
+ msgid "An email preview has been successfully sent to "
231
+ msgstr "E-mail voorbeeld succesvol verstuurd naar"
232
+
233
+ #: wpbe.php:195
234
+ msgid "An error occured while sending email. Please check your server configuration."
235
+ msgstr "Er is een fout opgetreden bij het verzenden van de e-mail. Controleer de server configuratie."
236
+
markitup/jquery.markitup.js CHANGED
@@ -24,6 +24,7 @@
24
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
  // THE SOFTWARE.
26
  // ----------------------------------------------------------------------------
 
27
  (function($) {
28
  $.fn.markItUp = function(settings, extraSettings) {
29
  var options, ctrlKey, shiftKey, altKey;
24
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
  // THE SOFTWARE.
26
  // ----------------------------------------------------------------------------
27
+
28
  (function($) {
29
  $.fn.markItUp = function(settings, extraSettings) {
30
  var options, ctrlKey, shiftKey, altKey;
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Better Emails ===
2
- Tags: email, emails, templates, notification, html emails, html, wp_mail
3
  Requires at least: 2.8
4
- Tested up to: 3.0.2
5
- Stable tag: 0.1.1
6
 
7
  Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
8
  a custom sender name and email address.
@@ -26,6 +26,7 @@ replaced when sending the email.
26
 
27
  * Add some ads/sponsored links to every email sent with wordpress
28
  * Include some banners to promote a special event or feature of your website
 
29
 
30
  = Internationalization =
31
 
@@ -33,6 +34,7 @@ WP Better Emails is currently available in :
33
 
34
  * English
35
  * French
 
36
 
37
  I'm looking for translators to extend to other languages. If you have translated the plugin in your language or want to,
38
  please let me know : plugins [ at ] artyshow-studio.fr
@@ -69,6 +71,10 @@ I included a few helpful links in the 'Help & support' tab, you will find comple
69
 
70
  == Changelog ==
71
 
 
 
 
 
72
  = 0.1.1 =
73
  * French translation added
74
 
1
  === WP Better Emails ===
2
+ Tags: email, emails, templates, notification, html emails, html, wp_mail, wpmu, multisite
3
  Requires at least: 2.8
4
+ Tested up to: 3.1
5
+ Stable tag: 0.1.2
6
 
7
  Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
8
  a custom sender name and email address.
26
 
27
  * Add some ads/sponsored links to every email sent with wordpress
28
  * Include some banners to promote a special event or feature of your website
29
+ * Brand your emails to your website or client website
30
 
31
  = Internationalization =
32
 
34
 
35
  * English
36
  * French
37
+ * Dutch (Thanks to [Glenn Mulleners](http://wp-expert.nl "Glenn Mulleners"))
38
 
39
  I'm looking for translators to extend to other languages. If you have translated the plugin in your language or want to,
40
  please let me know : plugins [ at ] artyshow-studio.fr
71
 
72
  == Changelog ==
73
 
74
+ = 0.1.2 =
75
+ * Added 3.1 compatibility
76
+ * Dutch translation
77
+
78
  = 0.1.1 =
79
  * French translation added
80
 
wpbe.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Better Emails
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
5
  Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
6
- Version: 0.1.1
7
  Author: ArtyShow
8
  Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
9
  */
@@ -19,6 +19,7 @@ add_action('wp_ajax_send_preview', 'wpbe_ajax_send_preview');
19
  add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'wpbe_add_settings_link');
20
  add_filter('wp_mail_from_name', 'wpbe_set_from_name');
21
  add_filter('wp_mail_from', 'wpbe_set_from_email');
 
22
 
23
  /**
24
  * Load the text domain for i18n
@@ -75,7 +76,7 @@ function wpbe_register_options() {
75
  }
76
 
77
  $template = '';
78
- include('email_template.php');
79
  $domain = strtolower( $_SERVER['SERVER_NAME'] );
80
  if ( substr( $domain, 0, 4 ) == 'www.' ) {
81
  $domain = substr( $domain, 4 );
@@ -166,7 +167,7 @@ function wpbe_options_validate( $input ) {
166
  }
167
 
168
  // Check name
169
- $input['from_name'] = strip_tags( $input['from_name'] );
170
 
171
  if( empty($input['template']) )
172
  add_settings_error('wpbe_options', 'settings_updated', __('Template is empty', 'wp-better-emails'));
@@ -284,7 +285,7 @@ function wpbe_set_from_email( $from_email ) {
284
  function wpbe_set_from_name( $from_name ) {
285
  global $wpbe_options;
286
  if ( !empty($wpbe_options['from_name']) )
287
- return $wpbe_options['from_name'];
288
  return $from_name;
289
  }
290
 
@@ -293,10 +294,15 @@ function wpbe_set_from_name( $from_name ) {
293
  *
294
  * @since 0.1
295
  * @param string $content_type
296
- * @return string
297
  */
298
  function wpbe_set_content_type( $content_type ) {
299
- return $content_type = 'text/html';
 
 
 
 
 
300
  }
301
 
302
  /**
@@ -306,29 +312,28 @@ function wpbe_set_content_type( $content_type ) {
306
  * @param object $phpmailer
307
  */
308
  function wpbe_send_html( $phpmailer ) {
309
- // Check if the message is text/plain
310
- if( strlen($phpmailer->Body) == strlen( strip_tags($phpmailer->Body) ) ) {
311
-
312
- // Set the original plain text message
313
- $phpmailer->AltBody = wp_specialchars_decode($phpmailer->Body, ENT_QUOTES);
314
-
315
- // Convert line breaks & make links clickable
316
- $phpmailer->Body = nl2br ( make_clickable ($phpmailer->Body) );
317
-
318
- // Add template to message
319
- $phpmailer->Body = wpbe_email_templatize($phpmailer->Body);
320
-
321
- // Replace variables in email
322
- $phpmailer->Body = wpbe_template_replacement($phpmailer->Body);
323
- }
324
  }
325
 
326
  /**
327
- * Only apply filters if there's a valid template
 
 
 
 
328
  */
329
- if( wpbe_check_template() ) {
330
- add_filter('wp_mail_content_type', 'wpbe_set_content_type');
331
- add_action('phpmailer_init', 'wpbe_send_html');
332
  }
333
 
 
334
  ?>
3
  Plugin Name: WP Better Emails
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
5
  Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
6
+ Version: 0.1.2
7
  Author: ArtyShow
8
  Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
9
  */
19
  add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'wpbe_add_settings_link');
20
  add_filter('wp_mail_from_name', 'wpbe_set_from_name');
21
  add_filter('wp_mail_from', 'wpbe_set_from_email');
22
+ add_filter('wp_mail_content_type', 'wpbe_set_content_type');
23
 
24
  /**
25
  * Load the text domain for i18n
76
  }
77
 
78
  $template = '';
79
+ @include('email_template.php');
80
  $domain = strtolower( $_SERVER['SERVER_NAME'] );
81
  if ( substr( $domain, 0, 4 ) == 'www.' ) {
82
  $domain = substr( $domain, 4 );
167
  }
168
 
169
  // Check name
170
+ $input['from_name'] = esc_html($input['from_name']);
171
 
172
  if( empty($input['template']) )
173
  add_settings_error('wpbe_options', 'settings_updated', __('Template is empty', 'wp-better-emails'));
285
  function wpbe_set_from_name( $from_name ) {
286
  global $wpbe_options;
287
  if ( !empty($wpbe_options['from_name']) )
288
+ return wp_specialchars_decode($wpbe_options['from_name'], ENT_QUOTES);
289
  return $from_name;
290
  }
291
 
294
  *
295
  * @since 0.1
296
  * @param string $content_type
297
+ * @return string $content_type
298
  */
299
  function wpbe_set_content_type( $content_type ) {
300
+ // Only convert if the message is text/plain and the template is ok
301
+ if( $content_type == 'text/plain' && wpbe_check_template() === true ) {
302
+ add_action('phpmailer_init', 'wpbe_send_html');
303
+ return $content_type = 'text/html';
304
+ }
305
+ return $content_type;
306
  }
307
 
308
  /**
312
  * @param object $phpmailer
313
  */
314
  function wpbe_send_html( $phpmailer ) {
315
+ // Set the original plain text message
316
+ $phpmailer->AltBody = wp_specialchars_decode($phpmailer->Body, ENT_QUOTES);
317
+ // Clean < and > around text links in WP 3.1
318
+ $phpmailer->Body = wpbe_esc_textlinks($phpmailer->Body);
319
+ // Convert line breaks & make links clickable
320
+ $phpmailer->Body = nl2br ( make_clickable ($phpmailer->Body) );
321
+ // Add template to message
322
+ $phpmailer->Body = wpbe_email_templatize($phpmailer->Body);
323
+ // Replace variables in email
324
+ $phpmailer->Body = wpbe_template_replacement($phpmailer->Body);
 
 
 
 
 
325
  }
326
 
327
  /**
328
+ * Replaces the < & > of the 3.1 email text links
329
+ *
330
+ * @since 0.1.2
331
+ * @param string $body
332
+ * @return string
333
  */
334
+ function wpbe_esc_textlinks( $body ) {
335
+ return preg_replace('#<(http://[^*]+)>#', '$1', $body);
 
336
  }
337
 
338
+
339
  ?>