• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Parsing iFrames in Latest Posts

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by a_5mith
    #1

    Was this a decision based on security or size issues? I've noticed that iFrames from embedded media don't display on either Recent Posts, or in the last x posts of a category on the homepage.

    Is their a better was of handling this rather than just using blank spaces...?

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #2

    @a_5mith I believe for security purposes, we only allow a strict set of HTML tags in the post previews. I don't quite recall the reason behind it, as they used to be parsed like posts.

    Perhaps @baris can shed some light?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #3

    Mostly because allowing everything looked like crap. You can change the tags that are stripped in utils.js the array is called utils.stripTags https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.js#L250

    I think we didn't have responsive video embedding at the beginning so all the youtube videos etc would just go out of the recent posts or get clipped etc. Maybe we can add it back since those are working now?

    A 1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    replied to <baris> on last edited by
    #4

    @baris Yeah I think most of the plugins are relatively responsive now by default, either that, or just parse the original link instead.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development