创建论坛 - 如何在引用行的开头放置'>' [英] Creating a forum - how to put '>' at start of quoted lines

查看:49
本文介绍了创建论坛 - 如何在引用行的开头放置'>'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试编写一个简单的论坛脚本,我想在引用的

行开头包含''>''文字(如在USENET上)。我怎么去做这个?b $ b这个?我的帖子存储在MySQL DB文本字段中。另外,如果我使用

strip_tags()在将其放入数据库之前从帖子中删除HTML,那么我可以如何保留&b; b
和>在消息中插入换行符(在

TEXTAREA中)?


TIA,

- QS Computing。


-

QS计算
http://www.qscomputing.plus.com
po ** ******@qscomputing.plus.com

解决方案

2005-04-05,QS Computing< po * *******@qscomputing.plus.com>写道:

我正在尝试编写一个简单的论坛脚本,我想在引用文本的行开头包含''>''(比如在USENET上)。我该怎么做呢?我的帖子存储在MySQL DB文本字段中。另外,如果我在将帖子放入数据库之前使用
strip_tags()从帖子中删除HTML,那么我将如何保留<和>在消息中插入换行符(在
TEXTAREA中)?




怎么样& gt; ?


-

干杯,

- Jacob Atzen


linebreaks - > php.net/nl2br


@Jacob Atzen:你的意思是用户在发布时应插入''& gt;''

而不是''<''?

理想情况下,我想在文本中快速将''<''转换为''& gt;''。


@frizzle:这就是我要找的东西。


- QS Computing。


Hi,
I''m trying to write a simple forum script and I want to include ''>'' at the
start of lines in quoted text (like on USENET). How do I go about doing
this? My post is stored in a MySQL DB text field. Also, if I use
strip_tags() to remove HTML from a post before putting it in the DB, how
can I retain < and > in the message and insert line breaks as typed (in
TEXTAREA)?

TIA,
- QS Computing.

--
QS Computing
http://www.qscomputing.plus.com
po********@qscomputing.plus.com

解决方案

On 2005-04-05, QS Computing <po********@qscomputing.plus.com> wrote:

I''m trying to write a simple forum script and I want to include ''>'' at the
start of lines in quoted text (like on USENET). How do I go about doing
this? My post is stored in a MySQL DB text field. Also, if I use
strip_tags() to remove HTML from a post before putting it in the DB, how
can I retain < and > in the message and insert line breaks as typed (in
TEXTAREA)?



How about &gt; ?

--
Cheers,
- Jacob Atzen


linebreaks --> php.net/nl2br


@Jacob Atzen: Do you mean users should insert ''&gt;'' when posting
instead of ''<''?
Ideally, I''d like a quick way to convert ''<'' to ''&gt;'' in the text.

@frizzle: That''s just what I''m looking for.

- QS Computing.


这篇关于创建论坛 - 如何在引用行的开头放置'&gt;'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆