打印后形成文本 [英] Text formating after print
问题描述
大家好
我正在从事内容管理服务,我需要一些帮助保持格式化。
我正在做的是在管理员端重新创建我的网站,网站上的所有文章现在都在< textarea>盒子,所以管理员可以编辑它们并保存它正在工作的更改,但他们使用的任何格式似乎都不起作用。如果他们想在他们的文章中间有一个返回
,唯一可行的方法就是如果他们在文章中输入一个br标签。是否有任何方法可以保持双空格转为一。有没有人知道如何解决所有这些问题。
你可以看到
http://www.steppinupwebdesign.com/cms/index页面。 php
和管理页面是
http://www.steppinupwebdesign.com/cms/admin.php
谢谢
eric
hi all
I am working on a content management service and i need some help keeping formating.
what i am doing is recreating my site in an admin side and all of the articles on the site will now be in <textarea> boxes so admins can edit them and save the changes it is working but any formating they use dosen''t seem to work. if they want to have a return
in the middle of their article the only way it will work is if they enter a br tag in the article. is there any way to keep also double spaces are turned to one. does anyone know how to fix all of this.
you can see the page at
http://www.steppinupwebdesign.com/cms/index.php
and the admin page is
http://www.steppinupwebdesign.com/cms/admin.php
thanks
eric
推荐答案
此主题包含有关将换行符转换为< br>的讨论。然后回来了。
This thread contains a discussion about converting line breaks to <br> and back.
嗨
我知道这可能是我做过的蠢事但是好像没什么工作
在我试图使用的三个页面上我已将我的php副本放入html注释中,以便您可以看到它们。我还发布了我认为下面重要的部分。
http://www.steppinupwebdesign.com/cms/admin.php - 管理员方面
http://www.steppinupwebdesign.com/cms/index.php - 显示页面
[PHP]
< ;?
if(isset(
Hi
I know it is probably somthing stupid i did but that didn''t seem to work
on the three pages of where i am trying to use this i have put a copy of my php into html comments so that you can see them. i also posted what i feel is the important part below.
http://www.steppinupwebdesign.com/cms/admin.php - the admin side
http://www.steppinupwebdesign.com/cms/index.php - the display page
[PHP]
<?
if (isset(
_POST [''hometxt1title'']))
_POST[''hometxt1title'']))
这篇关于打印后形成文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!