|
|
|
|
|
для: kis-kis
(12.01.2009 в 14:24)
| | код в студию. | |
|
|
|
|
|
|
|
для: Trianon
(12.01.2009 в 14:17)
| | не помогает... ( | |
|
|
|
|
|
|
|
для: kis-kis
(12.01.2009 в 14:10)
| | для подобного рода замен в php предназначена функция htmlspecialchars() | |
|
|
|
|
|
|
|
для: Trianon
(12.01.2009 в 13:47)
| | С помощью str_replace заменить - " - на это - "? | |
|
|
|
|
|
|
|
для: kis-kis
(12.01.2009 в 13:26)
| |
Berners-Lee & Connolly Standards Track [Page 14]
RFC 1866 Hypertext Markup Language - 2.0 November 1995
3.2.4. Attributes
In a start-tag, white space and attributes are allowed between the
element name and the closing delimiter. An attribute specification
typically consists of an attribute name, an equal sign, and a value,
though some attribute specifications may be just a name token. White
space is allowed around the equal sign.
The value of the attribute may be either:
* A string literal, delimited by single quotes or double
quotes and not containing any occurrences of the delimiting
character.
NOTE - Some historical implementations consider any
occurrence of the `>' character to signal the end of
a tag. For compatibility with such implementations,
when `>' appears in an attribute value, it should be
represented with a numeric character reference. For
example, `<IMG SRC="eq1.jpg" alt="a>b">' should be
written `<IMG SRC="eq1.jpg" alt="a>b">' or `<IMG
SRC="eq1.jpg" alt="a>b">'.
* A name token (a sequence of letters, digits, periods, or
hyphens). Name tokens are not case sensitive.
NOTE - Some historical implementations allow any
character except space or `>' in a name token.
In this example, <img> is the element name, src is the attribute
name, and `http://host/dir/file.gif' is the attribute value:
<img src='http://host/dir/file.gif'>
A useful technique for computing an attribute value literal for a
given string is to replace each quote and white space character by an
entity reference or numeric character reference as follows:
ENTITY NUMERIC
CHARACTER REFERENCE CHAR REF CHARACTER DESCRIPTION
--------- ---------- ----------- ---------------------
HT 	 Tab
LF Line Feed
CR Carriage Return
SP   Space
" " " Quotation mark
& & & Ampersand
Berners-Lee & Connolly Standards Track [Page 15]
RFC 1866 Hypertext Markup Language - 2.0 November 1995
For example:
<IMG SRC="image.jpg" alt="First "real" example">
The `NAMELEN' parameter in the SGML declaration (9.5, "SGML
Declaration for HTML") limits the length of an attribute value to
1024 characters.
Attributes such as ISMAP and COMPACT may be written using a minimized
syntax (see 7.9.1.2 "Omitted Attribute Name" in [SGML]). The markup:
<UL COMPACT="compact">
can be written using a minimized syntax:
<UL COMPACT>
NOTE - Some historical implementations only understand the minimized
syntax.
|
| |
|
|
|
|
|
|
|
для: Trianon
(12.01.2009 в 13:23)
| | Как это исправить, подскажите, пожалуйста? | |
|
|
|
|
|
|
|
для: kis-kis
(12.01.2009 в 13:17)
| | Именно. | |
|
|
|
|
|
|
|
для: Trianon
(12.01.2009 в 12:55)
| | Если написать текст - (тест "Тест"), то слово тест в кавычках остается за value... И переменная имеет значение только первого слова тест, написанного без кавычек.
Вы это имели ввиду? | |
|
|
|
|
|
|
|
для: Trianon
(12.01.2009 в 12:55)
| | - | |
|
|
|
|
|
|
|
для: kis-kis
(12.01.2009 в 12:52)
| | Я просил не php-скрипт вписать вместо звездочек, а реальный текст. Тот самый, который у Вас из поля формы получен.
Как Вы можете написать php-код, который формирует текст, если Вы сам текст вписать не в состоянии? | |
|
|
|
|