diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-15 21:08:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-15 21:08:02 +0000 |
commit | 70c21f7ee09eb192abcbc443ae364ebc8a08603c (patch) | |
tree | 2375bf4425329bdc783cf6099c7d00b4a285ceab /modules | |
parent | 1ad6cff2ecc2a04504ab27e50797300b56c7b81a (diff) | |
download | brdo-70c21f7ee09eb192abcbc443ae364ebc8a08603c.tar.gz brdo-70c21f7ee09eb192abcbc443ae364ebc8a08603c.tar.bz2 |
- Added DOCTYPE.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node.module | 3 | ||||
-rw-r--r-- | modules/node/node.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 587c94662..1d5709a57 100644 --- a/modules/node.module +++ b/modules/node.module @@ -751,7 +751,8 @@ function node_feed($nodes = 0, $channel = array()) { } $output .= "<?xml version=\"1.0\" ". t("encoding=\"ISO-8859-1\""). "?>\n"; - // $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n"; + $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n"; + // NOTE: é - for example - is the correct ISO-8859-1 translation of é (e acute) but apparently XML parsers don't (have to) understand it. To solve this problem, we use a DTD that defines commonly used entity such as é. if (!$channel["version"]) $channel["version"] = "0.91"; if (!$channel["title"]) $channel["title"] = variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); if (!$channel["link"]) $channel["link"] = path_uri(); diff --git a/modules/node/node.module b/modules/node/node.module index 587c94662..1d5709a57 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -751,7 +751,8 @@ function node_feed($nodes = 0, $channel = array()) { } $output .= "<?xml version=\"1.0\" ". t("encoding=\"ISO-8859-1\""). "?>\n"; - // $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n"; + $output .= "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n"; + // NOTE: é - for example - is the correct ISO-8859-1 translation of é (e acute) but apparently XML parsers don't (have to) understand it. To solve this problem, we use a DTD that defines commonly used entity such as é. if (!$channel["version"]) $channel["version"] = "0.91"; if (!$channel["title"]) $channel["title"] = variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); if (!$channel["link"]) $channel["link"] = path_uri(); |