Image Metadata Cruncher
html stripped in caption (4 posts)

  1. Dan
    Posted 2 years ago #

    I add links to my caption.

    With the tag text highlighter disabled, I can write html but it's stripped when an image is uploaded. With the tag text highligher enabled I can't even write html.

    Is there syntax to stop html from being stripped?


  2. Dan
    Posted 2 years ago #

    With the tag text highlighter disabled in the admin panel and lines 923,924 of image-metadata-cruncher.php commented out, html tags aren't stripped.

    923.... //$key = sanitize_text_field($key);
    924....  //$value = sanitize_text_field($value);
  3. peterhudec
    Plugin Author

    Posted 2 years ago #

    This is a security measure.
    I had to put it there to meet the requirements of the WordPress.com VIP.

  4. BirgerKlaus
    Posted 2 years ago #

    I post to these Issue, because I want to include a line break <BR /> in the description and or caption field. But also with disabled text highlighter and commented aut the lines 923 and 924 I get no success.

    My Descriptions Setting is:
    {IPTC:Caption-Abstract @"$ <BR />"} {EXIF:Make @"Aufgenommen mit: $"} {EXIF:Model @"$, " % "Keine weiteren Fotoinfos vorhanden - "} { EXIF:LensModel@ " $" % "" }{EXIF:FocalLengthIn35mmFilm @" ($mm bei KB) " } {EXIF:COMPUTED>ApertureFNumber @"<BR />Belichtung: $ - "}{EXIF:ExposureTime@"$ sec - "} {EXIF:ISOSpeedRatings@"$ ISO"}<BR />{EXIF:Copyright @" $"}

    Were are my mistakes?
    My WP-Version= 3.8 and Image Metadata Cruncher is 1.8

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Image Metadata Cruncher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic