wp_editor incorrectly parsing links? not sure
-
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: https://www.gueristavie.com"; rel="nofollow">Heal your life website - https://www.isabelcontreras.com/"; rel="nofollow">www.isabelcontreras.com - https://www.lifemotivations.ch/"; rel="nofollow">www.lifemotivations.ch https://www.youtube.com/watch?v=iF9Pty1ghho&feature=related"; rel="nofollow">Interview1 https://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="https://www.gueristavie.com"; rel="nofollow">Heal your life website</a> - <a href="https://www.isabelcontreras.com/"; rel="nofollow">www.isabelcontreras.com </a>- <a href="https://www.lifemotivations.ch/"; rel="nofollow">www.lifemotivations.ch</a> <a href="https://www.youtube.com/watch?v=iF9Pty1ghho&feature=related"; rel="nofollow">Interview1</a> <a href=" https://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.
- The topic ‘wp_editor incorrectly parsing links? not sure’ is closed to new replies.