J. King
8ed72580b1
Add expiry
5 years ago
J. King
77665b25ce
Minor corrections
5 years ago
J. King
69187e4392
Handle non-string entry IDs
5 years ago
J. King
14a190079c
Rename test set to more appropriate name
5 years ago
J. King
e16492d7f7
Per 1.1 spec JSON Feed will remain compatible
5 years ago
J. King
7b140572a6
Minor corrections
5 years ago
J. King
a81d84dedd
Add people to JSON Feed output
5 years ago
J. King
d1504842d0
Rename type property to format; add image stuff
5 years ago
J. King
8bed4c3554
Add references to more specifications
5 years ago
J. King
8081f19747
More JSON Feed functionality
5 years ago
J. King
69ceee0b39
Make first battery of tests pass
5 years ago
J. King
286cfe5b30
First set of tests
5 years ago
J. King
378e924541
Initial API redesign
Lots of things are probably (still) broken
5 years ago
J. King
fcd083f77a
Some doc-strings for the sanitizer
7 years ago
J. King
3b233adf29
Handle more obscore HTML features intelligently
7 years ago
J. King
d6d9c42af2
Preliminary work on attribute sanitization
7 years ago
J. King
ffe2f2adef
Simplify element sanitizing
This method simply loops through every single element and deletes it where appropriate. For now an XPath query is still used to iterating through elements straightforward; this may change later.
This should simplify handling XHTML (where arbitrary namespaces can be involved), and will ensure that every single element in the document is handled consistently.
There do, however, remain some cases that are not handled intelligently, such as if the root element is not in the keep list.
7 years ago
J. King
8c4a655b79
Delete and strip elements in the sanitizer
7 years ago
J. King
873a587b1e
First pass at HTML sanitizer whitelists and blacklists
7 years ago
J. King
5d077bc5af
Add related article URLs for Atom and JSON
7 years ago
J. King
c821403e28
Add entry links
7 years ago
J. King
f04681d278
Add creation dates (only for Atom and JSON Feed)
7 years ago
J. King
90844bdeea
More entry work
- Added entry titles (trivial)
- Added entry modification dates (also pretty trivial)
- Clean up of copy-paste hack-jobs.
7 years ago
J. King
ed098c457e
Initial work on XML entries
7 years ago
J. King
2faaa0cdd7
Ensure contributors are never used as primaries
7 years ago
J. King
c8b7944275
Re-organize people-fetching as four separate possible primitives, one for each role
7 years ago
J. King
4f79d431d2
First stab at entries, starting with JSON Feed.
7 years ago
J. King
730aff8489
Cleanup
7 years ago
J. King
610dc972e1
Add license
7 years ago
J. King
f96db9ce99
Delete zombie file
7 years ago
J. King
1a990116a5
Output of getCategories() should be a CategoryCollection
7 years ago
J. King
0660dbac2a
Reformulate categories as a collection; clean up collection filtering
7 years ago
J. King
f51bf38d1a
Make input date formats user-editable, and implicitly never default to current-time date-parts (especially microseconds in PHP 7.1).
7 years ago
J. King
38285f862a
Make collections serialize correctly to JSON; add helper Date class
The new Date class, which extends DateTimeImmutable, has both __toString() and jsonSerialize() methods which return unambiguously formatted strings.
7 years ago
J. King
3c1d9c76ef
Simplify XPath queries
7 years ago
J. King
1669c562ed
Add feed modification dates
7 years ago
J. King
0cec5a3132
Add canonical feed URLs
7 years ago
J. King
7a864b2082
Add list of specifications
7 years ago
J. King
bc5cbdeef5
Implement JSON Feed
7 years ago
J. King
26ceb68acd
Add abstract Feed class as common base for XML and JSON feeds
7 years ago
J. King
a6219a95b2
Re-organize namespace
7 years ago
J. King
77e27ed65c
Tweak
7 years ago
J. King
91009abe68
Fix Atim link fetching; provide output types for non-primitives
7 years ago
J. King
c97ea75601
Fetch Atom people from entries, for later
7 years ago
J. King
3ff24ec675
Add Atom and podcast people primitives; fix iTunes namespace
The general getPeople() function jumps through many hoops to get at least one author while also including any contributors, and including RSS' unique people-types.
Atom logic for entries will be slightly different than for feeds; this still needs to be implemented.
7 years ago
J. King
25dffb8eb8
Add RSS/DC people collections and primary authors
7 years ago
J. King
2d10f0ab59
Add Google Play podcast equivalents to Apple podcast metadata
7 years ago
J. King
6a7bc4c6e9
Add feed identifiers
7 years ago
J. King
f83e73b973
Add xml:base resolution to RSS and RDF
7 years ago
J. King
118882e5cc
Add feed type and version
7 years ago