How to remove <br /> line break tag automatically displayed inside a textarea code in a WordPress post. This tips apply to self-hosted WordPress blog only. This problem occur in WordPress version 2.7 to 3.0
If you experience the same problem here is how to fix it
CONTENTS
- Install remove unwanted HTML from textarea tags Plugins
- How to Preserve Codes inside Textarea in WordPress Post
I. Install Remove <br /> tag from Textarea Plugins
- Download this free plugin called WordPress plugin to remove unwanted HTML from textarea tags
- Unzip it
- Upload the php file to wp plugins directory using Filezilla FTP Client.
- Activate it in WordPress admin. Done.
Note: Easy plugins installation cannot be done here because the plugins is not in zip file.
II. How to Post Codes inside Text Area
Everytime you want to post/write a code and want it to appear as is in a WordPress posts, post it in HTML mode.
- After login -> Posts -> Add New
- Click HTML -> write <textarea> your codes here </textarea> (do not click Visual)
- Publish. Done. See screenshot below:

Unfortunately, I’m no longer on WordPress, mas Fatih, but I also did the same thing on my Blogger blog: removing the br tag.
another plugin? i think my disk space already full loaded now
Coba dulu ahhh…
Thank you my brother .. your theme is beautiful, and also rare .. Regards
thanks for this tutorial
A simple tutorial but very useful
Hm.. the tip #2 doesn’t work properly.. when you input the HTML code inside textarea tags you’ll find many unwanted white spaces appear..