Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

somethingelse on "wp_editor incorrectly parsing links? not sure"

$
0
0

i've added the wp_editor to my buddypress profile editing page... that in itself was a trick...

it works pretty well... except that it's breaking the inserted links.

so - the code in my custom buddypress edit.php is

<?php if( "bio"|| "295" || "897" == strtolower(bp_get_the_profile_field_name()) ) :
                          // TEXT EDITOR ADDITION
                          $content = html_entity_decode( bp_get_the_profile_field_edit_value() );
                          $settings = array( 'media_buttons' => false,
                                             'teeny' => true,
                                             'textarea_rows' => 20,
											 'editor_class' => ""  );

                          wp_editor( $content, bp_get_the_profile_field_input_name(), $settings );
                    ?>

and the html output looks like:

Isabel's websites:  http://www.gueristavie.com"; rel="nofollow">Heal your life website - http://www.isabelcontreras.com/"; rel="nofollow">www.isabelcontreras.com - http://www.lifemotivations.ch/"; rel="nofollow">www.lifemotivations.ch
http://www.youtube.com/watch?v=iF9Pty1ghho&feature=related"; rel="nofollow">Interview1
http://www.youtube.com/watch?feature=endscreen&NR=1&v=ZLjDPCPG8aE"; rel="nofollow">Interview 2

When it SHOULD look like:

<p>Isabel's websites:  <a href="http://www.gueristavie.com"; rel="nofollow">Heal your life website</a> - <a href="http://www.isabelcontreras.com/"; rel="nofollow">www.isabelcontreras.com </a>- <a href="http://www.lifemotivations.ch/"; rel="nofollow">www.lifemotivations.ch</a>
<a href="http://www.youtube.com/watch?v=iF9Pty1ghho&feature=related"; rel="nofollow">Interview1</a>
<a href="
http://www.youtube.com/watch?feature=endscreen&NR=1&v=ZLjDPCPG8aE"; rel="nofollow">Interview 2</a>

see the difference? it's NOT adding the <a href= and it's NOT closing the a tag.
so, to my untechnical members, this looks like "gobbledygook" as i've been informed.

totally stumped.
any insight or direction would be much appreciated.


Viewing all articles
Browse latest Browse all 8245

Trending Articles