Search code examples
phphtmlcodeignitertinybutstrong

TinyButStrong htmlconv="no" dont print string which comes after doble quotes (" ") in tooltip


I have content which comes from database. I am using TBS library with codeigniter. I am displaying content with the 200 character limit. User can see full content with mouse hover on content as tool tip. But in tool tip the string which comes after double quotes(" ") are not displaying.

enter image description here

In above image only Hello freinds print.

HTML Code :

<td><a class="tooltip-right" data-tooltip="<!--[blk4.tooltip;block=tr;comm;htmlconv=no;noerr]-->"><!--[blk4.tooltip;block=tr;comm;ope=max:200;]--></a></td>

If I remove htmlconv="no" from my HTML code then it print perfect but it prints br tag when line is break.

enter image description here

I have also tried this in controller

$string1=array("&nbsp;","<br />");
$string2=array(" ","/n");
$this->data['blk4'][]['tooltip']= str_replace($string1,string2,strip_tags($b['description']));

Any IDEA ??


Solution

  • I have solved my problem by replace this line in view page:

    <td><a class="tooltip-right" data-tooltip='<!--[blk4.tooltip;block=tr;comm;htmlconv=no;noerr]-->'><!--[blk4.t‌​ooltip;block=tr;comm;ope=max:200;]--></a></td>
    

    I have change " " with ' ' in data-tooltip=' ' in above line