Issue with $field->display()

  • Author
    Posts
  • LzoMedia

    I have an issue with $field->display() from
    wp-content/plugins/hivepress/templates/listing/view/block/listing-attributes-primary.php
    When I submit HTML in a html attribute for example image in base64 format it drops the data from the image uri
    ex of input in the backend
    <img src="image/png;charset=utf-8;base64,the_base_64_string" />

    and on the frontend I get :

    <img src="image/png;charset=utf-8;base64,the_base_64_string" />

    ihordeveloper

    I guess it’s a WordPress security limitation, any input if filtered with this function https://developer.wordpress.org/reference/functions/wp_kses_post/ Please consider setting image URL instead of base64 string.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Cyber Monday is coming! Get 25% off with MONDAY2020 coupon code until Monday, November 30.