WordPress.org

Ready to get started?Download WordPress

Ideas

Remove Code Filters

  1. darinroman
    Member

    It's extremely aggravating to design a page or post the way you'd like it just to have WP mangle the code by stripping out tags, line breaks and adding <p> tags on top of existing tags. It just makes a mess of nice clean code. I love WordPress...it is IMHO the most user friendly CMS out there. Please allow designers to code the way they'd like to and remove those filters or have an option to disable them.

    Posted: 3 years ago #
  2. darknailblue
    Member

    12345

    I'll second that... WP has been screwing up my code for years now...

    Sometimes I need a <div class="clear"></div> in a post and WP likes to kill my dreams when I switch back to visual mode.

    Posted: 3 years ago #
  3. Mark / t31os
    Moderator

    12345

    I've never had any of these problems described myself...

    Certainly helps to familiarise yourself with the allowed html array, since this array determines what tags you can use, and additionally determines what attributes are allowed on a given tag.. You can find the allowed html array in the kses file (wp-includes/kses.php)...

    @darknailblue
    I find using this works perfectly fine, switching between tabs, etc.. (code doesn't change)

    <br class="clear" />
    Posted: 3 years ago #
  4. gazouteast
    Member

    12345

    @ MArk

    Instead of having to open a core file to see what we can use, why does post edit (html side) not simply echo a list of "permitted" html tags, then it becomes second nature to just flick a glance over to it and check = a microsecond visual confirmation instead of faffing and farting around with obfuscated and hidden list placements.

    KISS principle in action, as opposed to KSES principle.

    Gaz

    Posted: 3 years ago #
  5. Mark / t31os
    Moderator

    12345

    And where this list go? Any suggestions on where it would be placed and how you would render this apparent list?

    Posted: 3 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    8 Votes
  • Status

    Sorry, not right now