Menu

#8 Embed HTML in Artist Description

open
nobody
None
5
2003-03-12
2003-03-12
Anonymous
No

I'd like to embed an image tag into the artist
description... how do I do it?

At the moment if I use <img src> or <html> tags it
brings it back as code - is there a way to make this field
proces the HTML code?

Discussion

  • Anonymous

    Anonymous - 2003-03-12

    Logged In: YES
    user_id=577049

    Here's a suggestion, but I have no clue if it works:
    edit foing/includes/functions.php, and insert before

    $text = str_replace("\n", "\n<br />\n", $text);

    the following line:

    $text = html_entity_decode($text);

     
  • Nobody/Anonymous

    Logged In: NO

    nah didn't work just get an error message saying it don't
    know what html_entity_decode is

     
  • Nobody/Anonymous

    Logged In: NO

    ok I hacked it myself
    this works

    insterad of what colorblind said add the following

    $text = strtr($text, array_flip(get_html_translation_table
    (HTML_ENTITIES)));
    $text = preg_replace("/&#([0-9]+);/me", "chr('\\1')",
    $text);

     

Log in to post a comment.

MongoDB Logo MongoDB