make the microsummary service handle text/html microsummaries by extracting their plaintext content
Patch by Simon Bünzli. bug=344178 r=myk git-svn-id: svn://10.0.0.236/trunk@203025 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ada0f9c487
commit
56bb4c81a5
@ -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");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user