make the microsummary service handle text/html microsummaries by extracting their plaintext content
Patch by Simon B��nzli. bug=344178 r=myk
This commit is contained in:
@@ -1028,6 +1028,8 @@ Microsummary.prototype = {
|
||||
generator.initFromXML(resource.content);
|
||||
else if (resource.contentType == "text/plain")
|
||||
generator.initFromText(resource.content);
|
||||
else if (resource.contentType == "text/html")
|
||||
generator.initFromText(resource.content.body.textContent);
|
||||
else
|
||||
throw("generator is neither XML nor plain text");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user